mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02: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
1 changed files with 4 additions and 1 deletions
|
|
@ -111,7 +111,10 @@ def __init__(self, elem, embed_relationships, XPath, get):
|
|||
|
||||
|
||||
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…
Reference in a new issue