mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Input: Fix an error when converting some DOCX files with inherited fonts. Fixes #1786414 [Python failure during conversion from .docx](https://bugs.launchpad.net/calibre/+bug/1786414)
This commit is contained in:
parent
aec315b9ff
commit
e973b575a5
@ -111,7 +111,10 @@ SYMBOL_FONT_NAMES = frozenset(n.lower() for n in SYMBOL_MAPS)
|
||||
|
||||
|
||||
def is_symbol_font(family):
|
||||
return family.lower() in SYMBOL_FONT_NAMES
|
||||
try:
|
||||
return family.lower() in SYMBOL_FONT_NAMES
|
||||
except AttributeError:
|
||||
return False
|
||||
|
||||
|
||||
def do_map(m, points):
|
||||
|
Loading…
x
Reference in New Issue
Block a user