Skip to content

Commit

Permalink
Reraise with the http exception message in the client
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnype committed Nov 21, 2023
1 parent 868e9cd commit 8e9fc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtdb/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _verify_response(response: Response, *args, **kwargs) -> None:
except HTTPError as e:
logger.exception("Request failed")

raise XTDBException from e
raise XTDBException(str(e)) from e

def status(self) -> XTDBStatus:
return XTDBStatus(**self._session.get(f"{self.base_url}/status").json())
Expand Down

0 comments on commit 8e9fc88

Please sign in to comment.