mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #5234 (Crash during EPUB to MOBI conversion (Kindle 2))
This commit is contained in:
parent
ebee2f795e
commit
5114792fce
@ -470,6 +470,8 @@ class OEBReader(object):
|
||||
if item is None:
|
||||
return False
|
||||
ncx = item.data
|
||||
if ncx is None:
|
||||
return False
|
||||
ptargets = xpath(ncx, 'ncx:pageList/ncx:pageTarget')
|
||||
if not ptargets:
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user