mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix conversion of MOBI files with non ASCII tag names
This commit is contained in:
parent
a79a6c0df3
commit
b74ece53a2
@ -351,7 +351,7 @@ class SGMLParser(markupbase.ParserBase):
|
||||
if tag not in self.stack:
|
||||
try:
|
||||
method = getattr(self, 'end_' + tag)
|
||||
except AttributeError:
|
||||
except (AttributeError, ValueError):
|
||||
self.unknown_endtag(tag)
|
||||
else:
|
||||
self.report_unbalanced(tag)
|
||||
|
Loading…
x
Reference in New Issue
Block a user