Skip to content
Myr

Make ContentDecodingError a subclass.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This should avoid the user having to worry about the new exception.

authored by Cory Benfield · committed by Cory Benfield · parent 14f207f · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/exceptions.py+2 added-1 removed
5 unmodified lines
67This module contains the set of Requests' exceptions.89"""10from .packages.urllib3.exceptions import HTTPError as BaseHTTPError111213class RequestException(IOError):14 """There was an ambiguous exception that occurred while handling your
48 unmodified lines
63class ChunkedEncodingError(RequestException):64 """The server declared chunked encoding but sent an invalid chunk."""656666class ContentDecodingError(RequestException):67class ContentDecodingError(RequestException, BaseHTTPError):68 """Failed to decode response content"""