mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1325709 [Private bug](https://bugs.launchpad.net/calibre/+bug/1325709)
This commit is contained in:
parent
83110cb730
commit
837cdcb95f
@ -108,7 +108,10 @@ def check_fonts(container):
|
||||
sheets = []
|
||||
for name, mt in container.mime_map.iteritems():
|
||||
if mt in OEB_STYLES:
|
||||
sheets.append((name, container.parsed(name), None))
|
||||
try:
|
||||
sheets.append((name, container.parsed(name), None))
|
||||
except Exception:
|
||||
pass # Could not parse, ignore
|
||||
elif mt in OEB_DOCS:
|
||||
for style in container.parsed(name).xpath('//*[local-name()="style"]'):
|
||||
if style.get('type', 'text/css') == 'text/css' and style.text:
|
||||
|
Loading…
x
Reference in New Issue
Block a user