mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Let's catch sslerror too. Why the stupid Python developers didn't make this a subclasss of socket.error, I don't know.
This commit is contained in:
parent
fbb348b6e7
commit
61e471a87c
@ -92,7 +92,7 @@ def getUrlFd(url, headers=None):
|
||||
return fd
|
||||
except socket.timeout, e:
|
||||
raise WebError, TIMED_OUT
|
||||
except socket.error, e:
|
||||
except (socket.error, socket.sslerror), e:
|
||||
raise WebError, strError(e)
|
||||
except urllib2.HTTPError, e:
|
||||
raise WebError, strError(e)
|
||||
|
Loading…
Reference in New Issue
Block a user