MOBI Output: Don't error out if indexing fails

This commit is contained in:
Kovid Goyal 2009-07-18 14:47:30 -06:00
parent 8290e98838
commit 50d6e86de8

View File

@ -1468,7 +1468,7 @@ class MobiWriter(object):
record0.write('\0\0\0\x01')
# 0xb8 - 0xbb : FCIS record number
if FCIS_FLIS :
if FCIS_FLIS and self._indexable:
# Write these if FCIS/FLIS turned on
# 0xb8 - 0xbb : FCIS record number
record0.write(pack('>I', self._fcis_number))