mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
todo
This commit is contained in:
@@ -262,6 +262,9 @@ class Request(object):
|
||||
self._build_response(why)
|
||||
if not self.redirect:
|
||||
self.response.error = why
|
||||
|
||||
# TODO: Support urllib connection refused errors
|
||||
|
||||
except urllib2.URLError, error:
|
||||
raise Timeout if isinstance(error.reason, socket.timeout) else error
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user