From 13deb9bab014a336ef9c37998dfd07ab9fe13fa2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Dec 2013 17:41:08 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index ee41cb4e72..7e52bb3573 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -344,7 +344,7 @@ class Container(object): # {{{ return self.opf.xpath(expr, namespaces=OPF_NAMESPACES) def has_name(self, name): - return name in self.name_path_map + return name and name in self.name_path_map def relpath(self, path, base=None): '''Convert an absolute path (with os separators) to a path relative to