diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2005-07-31 22:44:52 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2005-07-31 22:44:52 +0200 |
commit | 97f4c41349479382c94612c6f3e3090cafc8d194 (patch) | |
tree | c8da1fd2d24b8396208e78bc860b45f2339bd60d /parsers | |
parent | f652a54d0f161b3e0f1315bfb94a14a2a424d506 (diff) |
also catch AttributeError for problem in HTMLParser not fully supporting continuing after errors
git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@119 86f53f14-5ff3-0310-afe5-9b438ce3f40c
Diffstat (limited to 'parsers')
-rw-r--r-- | parsers/html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parsers/html.py b/parsers/html.py index 16c636f..932250c 100644 --- a/parsers/html.py +++ b/parsers/html.py @@ -140,7 +140,7 @@ def parse(content, link): try: parser.feed(content) parser.close() - except HTMLParser.HTMLParseError: + except (HTMLParser.HTMLParseError, AttributeError): pass # check for parser errors if parser.errmsg is not None: |