From b9159e5fe59f29ee668c34207fa629aa16e14155 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 13 Apr 2013 15:00:45 +0530 Subject: [PATCH] Polishing books: Fix polishing erroring out if the book being polished has no cover --- src/calibre/ebooks/oeb/polish/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/main.py b/src/calibre/ebooks/oeb/polish/main.py index 7ec34b5174..08b5004c91 100644 --- a/src/calibre/ebooks/oeb/polish/main.py +++ b/src/calibre/ebooks/oeb/polish/main.py @@ -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)