mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 01:46:48 +01:00
...
This commit is contained in:
parent
32a1c612ca
commit
d209bcf513
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ def generate_images(self):
|
|||
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…
Reference in a new issue