Polishing books: Fix polishing erroring out if the book being polished has no cover

This commit is contained in:
Kovid Goyal 2013-04-13 15:00:45 +05:30
parent c95ca53d59
commit b9159e5fe5

View File

@ -175,7 +175,7 @@ def gui_polish(data):
if not data.pop('metadata'):
data.pop('opf')
if not data.pop('do_cover'):
data.pop('cover')
data.pop('cover', None)
file_map = {x:x for x in files}
opts = ALL_OPTS.copy()
opts.update(data)