mirror of
https://github.com/Eledio/superfaktura-client.git
synced 2025-11-01 00:18:25 +01:00
superfaktura_api: preserve the exception context
This commit is contained in:
@@ -92,7 +92,7 @@ class SuperFakturaAPI:
|
||||
except requests.exceptions.JSONDecodeError as e:
|
||||
raise SuperFakturaAPIException(
|
||||
f"Unable to decode response as JSON; {req.content!r}; {e}"
|
||||
)
|
||||
) from e
|
||||
raise SuperFakturaAPIException(
|
||||
f"Get status code: {req.status_code}; {req.content!r}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user