mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix #2023975 [[bug][convert] convert with embedded_fonts raise FileNotFoundError](https://bugs.launchpad.net/calibre/+bug/2023975)
This commit is contained in:
parent
c42af1f3dc
commit
6e22fee014
@ -188,7 +188,10 @@ class SubsetFonts:
|
|||||||
'''
|
'''
|
||||||
self.embedded_fonts = []
|
self.embedded_fonts = []
|
||||||
for item in self.oeb.manifest:
|
for item in self.oeb.manifest:
|
||||||
if not hasattr(item.data, 'cssRules'):
|
try:
|
||||||
|
if not hasattr(item.data, 'cssRules'):
|
||||||
|
continue
|
||||||
|
except FileNotFoundError:
|
||||||
continue
|
continue
|
||||||
self.embedded_fonts.extend(find_font_face_rules(item, self.oeb))
|
self.embedded_fonts.extend(find_font_face_rules(item, self.oeb))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user