From 9d48f2c879bd69790f59364afb63d92d5a9f1c86 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 20 Sep 2005 19:06:35 +0000 Subject: [PATCH] plugins/Web: Update the exception handling for the change in parsers. --- plugins/Web/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index c5257e50e..5a811f842 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -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: