Oops
This commit is contained in:
1 parent
9a0d45c3f6
commit
82d2aa0e4c
1 file changed
+2
-1
@@ -188,7 +188,8 @@ class IRCActions():
|
||||
reply = "URL: "
|
||||
url = urlmatch.group()
|
||||
try:
|
||||
i = urllib2.urlopen(url, timeout=3, headers={'User-Agent': 'snurrbot v0.1'})
|
||||
req = urllib2.Request(url, headers={'User-Agent': 'snurrbot v0.1'})
|
||||
i = urllib2.urlopen(req)
|
||||
except Exception as e:
|
||||
_log(e)
|
||||
self.bot.msgReply(nick, channel, reply + "Timeout")
|
||||
|
||||
Reference in new issue
Block a user