From 0b90d80fee3cba014945b6b4c33f98a409e889f4 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 19 Nov 2003 14:56:21 +0000 Subject: [PATCH] Caught the right error. --- plugins/Sourceforge.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Sourceforge.py b/plugins/Sourceforge.py index 7669f19b2..82f25d343 100644 --- a/plugins/Sourceforge.py +++ b/plugins/Sourceforge.py @@ -35,6 +35,7 @@ Accesses Sourceforge.net for various things import re import sets +import socket import urllib2 from itertools import ifilter, imap @@ -314,7 +315,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable): ircutils.bold(num), '; '.join(resp)), prefixName = False) except urllib2.HTTPError, e: debug.msg(e.msg()) - except error, e: + except socket.error, e: debug.msg(e.msg()) sfSnarfer = privmsgs.urlSnarfer(sfSnarfer)