mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -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:
|
if item is None:
|
||||||
return False
|
return False
|
||||||
ncx = item.data
|
ncx = item.data
|
||||||
|
if ncx is None:
|
||||||
|
return False
|
||||||
ptargets = xpath(ncx, 'ncx:pageList/ncx:pageTarget')
|
ptargets = xpath(ncx, 'ncx:pageList/ncx:pageTarget')
|
||||||
if not ptargets:
|
if not ptargets:
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user