mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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()
|
parser = Title()
|
||||||
try:
|
try:
|
||||||
parser.feed(text)
|
parser.feed(text)
|
||||||
except HTMLParser.HTMLParseError:
|
except sgmllib.SGMLParseError:
|
||||||
self.log.debug('Encountered a problem parsing %u. Title may '
|
self.log.debug('Encountered a problem parsing %u. Title may '
|
||||||
'already be set, though', url)
|
'already be set, though', url)
|
||||||
if parser.title:
|
if parser.title:
|
||||||
@ -172,7 +172,7 @@ class Web(callbacks.PluginRegexp):
|
|||||||
parser = Title()
|
parser = Title()
|
||||||
try:
|
try:
|
||||||
parser.feed(text)
|
parser.feed(text)
|
||||||
except HTMLParser.HTMLParseError:
|
except sgmllib.SGMLParseError:
|
||||||
self.log.debug('Encountered a problem parsing %u. Title may '
|
self.log.debug('Encountered a problem parsing %u. Title may '
|
||||||
'already be set, though', url)
|
'already be set, though', url)
|
||||||
if parser.title:
|
if parser.title:
|
||||||
|
Loading…
Reference in New Issue
Block a user