mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Catch the proper exception when parsing the title fails.
This commit is contained in:
parent
f1948a2245
commit
74e06ea52a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user