mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added another case to except clauses for Connection Reset by Peer.
This commit is contained in:
parent
d06418633c
commit
1dfca188e9
@ -49,6 +49,8 @@ def getUrlFd(url):
|
||||
raise WebError, 'Connection refused.'
|
||||
elif e.args[0] in (110, 10060):
|
||||
raise WebError, 'Connection timed out.'
|
||||
elif e.args[0] == 104:
|
||||
raise WebError, 'Connection reset by peer.'
|
||||
else:
|
||||
raise WebError, str(e)
|
||||
except (urllib2.HTTPError, urllib2.URLError), e:
|
||||
|
Loading…
Reference in New Issue
Block a user