Fix #6240 (Error during conversion of CHM in Calibre 0.7.9)

This commit is contained in:
Kovid Goyal 2010-07-21 12:09:53 -06:00
parent dd2b65c387
commit df5b96092f

View File

@ -177,6 +177,7 @@ class CHMInput(InputFormatPlugin):
chapter_path = None
if match_string(node.tag, 'object') and match_string(node.attrib['type'], 'text/sitemap'):
chapter_title = None
for child in node:
if match_string(child.tag,'param') and match_string(child.attrib['name'], 'name'):
chapter_title = child.attrib['value']