From 245c6edec34efd3216da2bd685a73fe411399b82 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 15 Jun 2011 22:56:14 -0400 Subject: [PATCH] todo --- requests/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requests/models.py b/requests/models.py index c46d8ed..48ba976 100644 --- a/requests/models.py +++ b/requests/models.py @@ -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: -- 2.34.1