From 74e06ea52a56ada87466724e2dc5ff32f3254287 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 4 Oct 2007 12:57:00 +0000 Subject: [PATCH] Catch the proper exception when parsing the title fails. --- plugins/Web/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 04e9e2dce..d1558a2b8 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 sgmllib.SGMLParseError: + except HTMLParser.HTMLParseError: self.log.debug('Encountered a problem parsing %u. Title may ' 'already be set, though', url) if parser.title: