This commit is contained in:
Daan Koning
2023-05-24 16:56:57 +02:00
parent daf4e6f632
commit 7343ec4196

View File

@@ -13,11 +13,6 @@ PROTOCOL = "https://"
class APIException(RuntimeError):
def __int__(self, message, response: requests.Response):
self.api_message = response.json()['message']
super().__init__(message)
def __str__(self):
return f"('{self.args[0]}', '{self.args[1].json()['message']}')"