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