From 1d2abea94b2323352e18648154a163c96136b689 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 9 Nov 2011 15:30:47 -0800 Subject: [PATCH] new ConnectionError for bad APIs :) --- requests/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requests/exceptions.py b/requests/exceptions.py index 16acd92..d20a95c 100644 --- a/requests/exceptions.py +++ b/requests/exceptions.py @@ -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.""" -- 2.7.4