Fixes issues #496 by having Response.ok catch all Requests exceptions.

This commit is contained in:
Steve Pulec
2012-03-18 23:06:42 -03:00
parent 5c575b30c2
commit 3c2f52d681
+1 -1
View File
@@ -660,7 +660,7 @@ class Response(object):
def ok(self):
try:
self.raise_for_status()
except HTTPError:
except RequestException:
return False
return True