From df5b96092f1f0750e4be1c857b6ef190aa5ba534 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Jul 2010 12:09:53 -0600 Subject: [PATCH] Fix #6240 (Error during conversion of CHM in Calibre 0.7.9) --- src/calibre/ebooks/chm/input.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/chm/input.py b/src/calibre/ebooks/chm/input.py index e3c3deba78..c4b124fe98 100644 --- a/src/calibre/ebooks/chm/input.py +++ b/src/calibre/ebooks/chm/input.py @@ -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']