From 684f51b9598fc93625f220953db8ab9c2170aa43 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 2 Jul 2010 12:03:45 -0600 Subject: [PATCH] Fix #6064 (Error on opening or converting html file) --- src/calibre/ebooks/oeb/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index 4f0b1d5c52..1979244cc8 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -844,7 +844,7 @@ class Manifest(object): nroot = etree.fromstring('') has_body = False for child in list(data): - if barename(child.tag) == 'body': + if isinstance(child.tag, (unicode, str)) and barename(child.tag) == 'body': has_body = True break parent = nroot