We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 620ed4f commit 24540e3Copy full SHA for 24540e3
requests/exceptions.py
@@ -33,6 +33,9 @@ class InvalidJSONError(RequestException):
33
34
class JSONDecodeError(InvalidJSONError, CompatJSONDecodeError):
35
"""Couldn't decode the text into json"""
36
+ def __init__(self, *args, **kwargs):
37
+ CompatJSONDecodeError.__init__(self, *args)
38
+ InvalidJSONError.__init__(self, *self.args, **kwargs)
39
40
41
class HTTPError(RequestException):
0 commit comments