mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Polishing books: Fix polishing erroring out if the book being polished has no cover
This commit is contained in:
parent
c95ca53d59
commit
b9159e5fe5
@ -175,7 +175,7 @@ def gui_polish(data):
|
|||||||
if not data.pop('metadata'):
|
if not data.pop('metadata'):
|
||||||
data.pop('opf')
|
data.pop('opf')
|
||||||
if not data.pop('do_cover'):
|
if not data.pop('do_cover'):
|
||||||
data.pop('cover')
|
data.pop('cover', None)
|
||||||
file_map = {x:x for x in files}
|
file_map = {x:x for x in files}
|
||||||
opts = ALL_OPTS.copy()
|
opts = ALL_OPTS.copy()
|
||||||
opts.update(data)
|
opts.update(data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user