mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-19 23:20:57 +01:00
Handled Windows' timeout number on socket.error.
This commit is contained in:
parent
0b9d7bd0bb
commit
b1f424d1ed
@ -202,7 +202,7 @@ class Debian(callbacks.Privmsg, plugins.PeriodicFileDownloader):
|
|||||||
irc.error(msg, 'I couldn\'t reach the search page (%s).' % e)
|
irc.error(msg, 'I couldn\'t reach the search page (%s).' % e)
|
||||||
return
|
return
|
||||||
except socket.error, e:
|
except socket.error, e:
|
||||||
if e.args[0] == 110:
|
if e.args[0] == 110 or e.args[0] == 10060:
|
||||||
irc.error(msg, 'Connection timed out to packages.debian.org.')
|
irc.error(msg, 'Connection timed out to packages.debian.org.')
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user