From 4d59c3e4bc7a68672c16d0e9e78f8fa870793ec7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 5 Mar 2013 09:56:29 +0530 Subject: [PATCH] Polish books: Fix a bug that could cause updating covers to error out in some books --- src/calibre/ebooks/oeb/polish/cover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/cover.py b/src/calibre/ebooks/oeb/polish/cover.py index a5d7560989..01b9e25e59 100644 --- a/src/calibre/ebooks/oeb/polish/cover.py +++ b/src/calibre/ebooks/oeb/polish/cover.py @@ -192,7 +192,7 @@ def remove_cover_image_in_page(container, page, cover_images): href = img.get('src') name = container.href_to_name(href, page) if name in cover_images: - img.getparent.remove(img) + img.getparent().remove(img) break def set_epub_cover(container, cover_path, report):