superfaktura_api: preserve the exception context

This commit is contained in:
Richard Kubíček
2025-03-04 13:47:07 +01:00
parent 8d5bf14be3
commit 3d39ac39b2

View File

@@ -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}"
)