From b74ece53a24b3374086d018a357b72780bcca280 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 11 Dec 2008 21:13:45 -0800 Subject: [PATCH] Fix conversion of MOBI files with non ASCII tag names --- src/calibre/ebooks/sgmllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/sgmllib.py b/src/calibre/ebooks/sgmllib.py index 2a83225d43..4a82a1a9e3 100644 --- a/src/calibre/ebooks/sgmllib.py +++ b/src/calibre/ebooks/sgmllib.py @@ -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)