Fix #5234 (Crash during EPUB to MOBI conversion (Kindle 2))

This commit is contained in:
Kovid Goyal 2010-04-09 10:10:54 +05:30
parent ebee2f795e
commit 5114792fce

View file

@ -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