Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2005-07-31 22:44:52 +0200
committerArthur de Jong <arthur@arthurdejong.org>2005-07-31 22:44:52 +0200
commit97f4c41349479382c94612c6f3e3090cafc8d194 (patch)
treec8da1fd2d24b8396208e78bc860b45f2339bd60d /parsers
parentf652a54d0f161b3e0f1315bfb94a14a2a424d506 (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.py2
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: