mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
32a1c612ca
commit
d209bcf513
@ -201,7 +201,7 @@ class MobiWriter(object):
|
||||
finally:
|
||||
item.unload_data_from_memory()
|
||||
|
||||
if self.image_records[0] is None:
|
||||
if self.image_records and self.image_records[0] is None:
|
||||
raise ValueError('Failed to find masthead image in manifest')
|
||||
|
||||
# }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user