diff --git a/src/blueapi/client/rest.py b/src/blueapi/client/rest.py index 2edf3ec50..32d49e999 100644 --- a/src/blueapi/client/rest.py +++ b/src/blueapi/client/rest.py @@ -153,8 +153,8 @@ def _request_and_deserialize( if self._tokenHandler.refresh_auth_token(): access_token = self._tokenHandler.token["access_token"] headers["Authorization"] = f"Bearer {access_token}" - except Exception: - pass + except Exception as e: + raise Exception from e if data: response = requests.request(method, url, json=data, headers=headers) else: