diff --git a/requests/exceptions.py b/requests/exceptions.py index 79697635a5..779149ab02 100644 --- a/requests/exceptions.py +++ b/requests/exceptions.py @@ -33,6 +33,9 @@ class InvalidJSONError(RequestException): class JSONDecodeError(InvalidJSONError, CompatJSONDecodeError): """Couldn't decode the text into json""" + def __init__(self, *args, **kwargs): + CompatJSONDecodeError.__init__(self, *args) + InvalidJSONError.__init__(self, *self.args, **kwargs) class HTTPError(RequestException):