mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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
|
return fd
|
||||||
except socket.timeout, e:
|
except socket.timeout, e:
|
||||||
raise WebError, TIMED_OUT
|
raise WebError, TIMED_OUT
|
||||||
except socket.error, e:
|
except (socket.error, socket.sslerror), e:
|
||||||
raise WebError, strError(e)
|
raise WebError, strError(e)
|
||||||
except urllib2.HTTPError, e:
|
except urllib2.HTTPError, e:
|
||||||
raise WebError, strError(e)
|
raise WebError, strError(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user