From df29ce1116c873bb08f3d1117a7c96289386cb3d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 21 Jun 2014 16:07:17 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/check/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/check/main.py b/src/calibre/ebooks/oeb/polish/check/main.py index 41fd3cd1e4..57fe657a95 100644 --- a/src/calibre/ebooks/oeb/polish/check/main.py +++ b/src/calibre/ebooks/oeb/polish/check/main.py @@ -77,7 +77,10 @@ def fix_errors(container, errors): # Fix parsing changed = False for name in {e.name for e in errors if getattr(e, 'is_parsing_error', False)}: - root = container.parsed(name) + try: + root = container.parsed(name) + except TypeError: + continue container.dirty(name) if container.mime_map[name] in OEB_DOCS: for style in root.xpath('//*[local-name()="style"]'):