plugins/Web: Update the exception handling for the change in parsers.

This commit is contained in:
James Vega 2005-09-20 19:06:35 +00:00
parent 8cf975d844
commit 9d48f2c879

View File

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