aboutsummaryrefslogtreecommitdiff
path: root/requests/exceptions.py
diff options
context:
space:
mode:
authorSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 13:41:21 -0700
committerSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 13:41:21 -0700
commite75853fc04102c7f72f2e955b63f9692c472f64a (patch)
tree9847c33530102dcf8f42bba6a562a7df34d651e6 /requests/exceptions.py
parent365ef510aa3581a79709673e078401724601fc71 (diff)
downloadpython-requests-e75853fc04102c7f72f2e955b63f9692c472f64a.tar
python-requests-e75853fc04102c7f72f2e955b63f9692c472f64a.tar.gz
Imported Upstream version 0.10.8
Diffstat (limited to 'requests/exceptions.py')
-rw-r--r--requests/exceptions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/requests/exceptions.py b/requests/exceptions.py
index c7b98e6..d5b2ab1 100644
--- a/requests/exceptions.py
+++ b/requests/exceptions.py
@@ -8,12 +8,13 @@ This module contains the set of Requests' exceptions.
"""
-class RequestException(Exception):
+class RequestException(RuntimeError):
"""There was an ambiguous exception that occurred while handling your
request."""
class HTTPError(RequestException):
"""An HTTP error occurred."""
+ response = None
class ConnectionError(RequestException):
"""A Connection error occurred."""