diff options
Diffstat (limited to 'test/normalize.py')
-rw-r--r-- | test/normalize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/normalize.py b/test/normalize.py index 70bee46..2bce2cc 100644 --- a/test/normalize.py +++ b/test/normalize.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from html.parser import HTMLParser, HTMLParseError +from html.parser import HTMLParser from html.entities import name2codepoint import sys import re @@ -175,6 +175,6 @@ def normalize_html(html): parser.feed(chunk.group(0)) parser.close() return parser.output - except HTMLParseError as e: + except Exception as e: sys.stderr.write("Normalization error: " + e.msg + "\n") return html # on error, return unnormalized HTML |