This commit is contained in:
nikolark committed 2014-05-14 15:49:58 +02:00
1 parent 9a0d45c3f6
commit 82d2aa0e4c
1 file changed
+2 -1
+2 -1
View File
@@ -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")