new ConnectionError for bad APIs :)
authorKenneth Reitz <me@kennethreitz.com>
Wed, 9 Nov 2011 23:30:47 +0000 (15:30 -0800)
committerKenneth Reitz <me@kennethreitz.com>
Wed, 9 Nov 2011 23:30:47 +0000 (15:30 -0800)
requests/exceptions.py

index 16acd92..d20a95c 100644 (file)
@@ -15,8 +15,8 @@ class RequestException(Exception):
 class HTTPError(RequestException):
     """An HTTP error occured."""
 
-class AuthenticationError(RequestException):
-    """The authentication credentials provided were invalid."""
+class ConnectionError(RequestException):
+    """A Connection error occured."""
 
 class Timeout(RequestException):
     """The request timed out."""