mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
plugins/Web: Update the exception handling for the change in parsers.
This commit is contained in:
parent
8cf975d844
commit
9d48f2c879
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user