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:
Kovid Goyal 2018-08-10 11:59:49 +05:30
parent aec315b9ff
commit e973b575a5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -111,7 +111,10 @@ SYMBOL_FONT_NAMES = frozenset(n.lower() for n in SYMBOL_MAPS)
def is_symbol_font(family):
try:
return family.lower() in SYMBOL_FONT_NAMES
except AttributeError:
return False
def do_map(m, points):