Forget to catch the actual exception instance in callCommand.

This commit is contained in:
Jeremy Fincher 2003-10-31 19:17:26 +00:00
parent 9e7a37e5bf
commit 4e4855094c

View File

@ -92,7 +92,7 @@ class Http(callbacks.Privmsg):
callbacks.Privmsg.callCommand(self, method, irc, msg, *L) callbacks.Privmsg.callCommand(self, method, irc, msg, *L)
except socket.gaierror, e: except socket.gaierror, e:
irc.error(msg, e.args[1]) irc.error(msg, e.args[1])
except urllib2.HTTPError: except urllib2.HTTPError, r:
irc.error(msg, str(e)) irc.error(msg, str(e))
_titleRe = re.compile(r'<title>(.*?)</title>', re.I | re.S) _titleRe = re.compile(r'<title>(.*?)</title>', re.I | re.S)