mirror of
https://github.com/Eledio/superfaktura-client.git
synced 2025-11-01 00:18:25 +01:00
superfaktura_api: fix return values of get method
This commit is contained in:
@@ -91,7 +91,10 @@ class SuperFakturaAPI:
|
|||||||
return req.json()
|
return req.json()
|
||||||
except requests.exceptions.JSONDecodeError as e:
|
except requests.exceptions.JSONDecodeError as e:
|
||||||
raise SuperFakturaAPIException(
|
raise SuperFakturaAPIException(
|
||||||
f"Get status code: {req.status_code}; {req.content}; {e}"
|
f"Unable to decode response as JSON; {req.content!r}; {e}"
|
||||||
|
)
|
||||||
|
raise SuperFakturaAPIException(
|
||||||
|
f"Get status code: {req.status_code}; {req.content!r}"
|
||||||
)
|
)
|
||||||
|
|
||||||
def post(self, endpoint: str, data: str, timeout: int = 5) -> Dict:
|
def post(self, endpoint: str, data: str, timeout: int = 5) -> Dict:
|
||||||
|
|||||||
Reference in New Issue
Block a user