Fix conversion of MOBI files with non ASCII tag names

This commit is contained in:
Kovid Goyal 2008-12-11 21:13:45 -08:00
parent a79a6c0df3
commit b74ece53a2

View File

@ -351,7 +351,7 @@ class SGMLParser(markupbase.ParserBase):
if tag not in self.stack: if tag not in self.stack:
try: try:
method = getattr(self, 'end_' + tag) method = getattr(self, 'end_' + tag)
except AttributeError: except (AttributeError, ValueError):
self.unknown_endtag(tag) self.unknown_endtag(tag)
else: else:
self.report_unbalanced(tag) self.report_unbalanced(tag)