From aadbcf2299938d65c08e7d7ea3a157380fa4558d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 21 Nov 2013 17:34:57 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/reader.py b/src/calibre/ebooks/oeb/reader.py index b99f5d1087..4f31aa0b3b 100644 --- a/src/calibre/ebooks/oeb/reader.py +++ b/src/calibre/ebooks/oeb/reader.py @@ -113,10 +113,10 @@ class OEBReader(object): self.logger.warn('OPF contains invalid HTML named entities') except etree.XMLSyntaxError: data = re.sub(r'(?is).+', '', data) - self.logger.warn('OPF contains invalid tours section') data = data.replace('', '') opf = etree.fromstring(data) + self.logger.warn('OPF contains invalid tours section') ns = namespace(opf.tag) if ns not in ('', OPF1_NS, OPF2_NS):