mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:03:43 +02: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:
|
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…
Reference in a new issue