From 224200a9815f792f93632d03a38e4f0763ae69ef Mon Sep 17 00:00:00 2001 From: SVN-Git Migration Date: Thu, 8 Oct 2015 13:41:29 -0700 Subject: Imported Upstream version 2.0.0 --- requests/exceptions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'requests/exceptions.py') diff --git a/requests/exceptions.py b/requests/exceptions.py index c0588f6..22207e3 100644 --- a/requests/exceptions.py +++ b/requests/exceptions.py @@ -9,7 +9,7 @@ This module contains the set of Requests' exceptions. """ -class RequestException(RuntimeError): +class RequestException(IOError): """There was an ambiguous exception that occurred while handling your request.""" @@ -53,3 +53,7 @@ class InvalidSchema(RequestException, ValueError): class InvalidURL(RequestException, ValueError): """ The URL provided was somehow invalid. """ + + +class ChunkedEncodingError(RequestException): + """The server declared chunked encoding but sent an invalid chunk.""" -- cgit v1.2.3