From 682a814c54d383cacb94a3f7c94751c15a5a1184 Mon Sep 17 00:00:00 2001 From: davidhieber Date: Wed, 6 Nov 2024 14:36:14 +0100 Subject: [PATCH] fix: error capture for missing keycloak client Co-authored-by: Nightknight3000 --- src/utils/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/token.py b/src/utils/token.py index e102f34..32b8ea3 100644 --- a/src/utils/token.py +++ b/src/utils/token.py @@ -154,7 +154,7 @@ def delete_keycloak_client(analysis_id: str) -> None: response.raise_for_status() try: uuid = response.json()[0]['id'] - except KeyError: + except (KeyError, IndexError): print('Client not found') return