mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 06:43:25 +02:00
...
This commit is contained in:
parent
2f86ec6ccd
commit
df29ce1116
1 changed files with 4 additions and 1 deletions
|
|
@ -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"]'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue