From 8e9fc88aa24a40f47746fd43a72333936e4dd250 Mon Sep 17 00:00:00 2001 From: Donny Peeters Date: Tue, 21 Nov 2023 14:43:33 +0100 Subject: [PATCH] Reraise with the http exception message in the client --- xtdb/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtdb/session.py b/xtdb/session.py index fd34f3c..71eb7a2 100644 --- a/xtdb/session.py +++ b/xtdb/session.py @@ -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())