mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-12 09:03:40 +01:00
Fix #5234 (Crash during EPUB to MOBI conversion (Kindle 2))
This commit is contained in:
parent
ebee2f795e
commit
5114792fce
1 changed files with 2 additions and 0 deletions
|
|
@ -470,6 +470,8 @@ def _pages_from_ncx(self, opf, item):
|
|||
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…
Reference in a new issue