mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #6064 (Error on opening or converting html file)
This commit is contained in:
parent
cbaa8f6139
commit
684f51b959
@ -844,7 +844,7 @@ class Manifest(object):
|
|||||||
nroot = etree.fromstring('<html></html>')
|
nroot = etree.fromstring('<html></html>')
|
||||||
has_body = False
|
has_body = False
|
||||||
for child in list(data):
|
for child in list(data):
|
||||||
if barename(child.tag) == 'body':
|
if isinstance(child.tag, (unicode, str)) and barename(child.tag) == 'body':
|
||||||
has_body = True
|
has_body = True
|
||||||
break
|
break
|
||||||
parent = nroot
|
parent = nroot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user