From 6552ec1aae5070f71a79370d95dd26fa4eccfb47 Mon Sep 17 00:00:00 2001 From: Andrew Rowley Date: Mon, 4 Dec 2023 14:43:33 +0000 Subject: [PATCH] Hopefully this breaks nothing! --- spinnman/spalloc/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinnman/spalloc/session.py b/spinnman/spalloc/session.py index 21fac6aba..ab3601705 100644 --- a/spinnman/spalloc/session.py +++ b/spinnman/spalloc/session.py @@ -262,7 +262,7 @@ def renew(self) -> JsonObject: error = str(json_error) except JSONDecodeError: error = r.raw - raise KeyError(f"Unable to login: {error}") from e + raise SpallocException(f"Unable to login: {error}") from e # Step three: get the basic service data and new CSRF token obj: JsonObject = self.get(self.__srv_base).json()