Catch the proper exception when parsing the title fails.

This commit is contained in:
James Vega 2007-10-04 12:57:00 +00:00
parent f1948a2245
commit 74e06ea52a
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class Web(callbacks.PluginRegexp):
parser = Title()
try:
parser.feed(text)
except sgmllib.SGMLParseError:
except HTMLParser.HTMLParseError:
self.log.debug('Encountered a problem parsing %u. Title may '
'already be set, though', url)
if parser.title: