From d8b2317e283340995956ff814003e18f6a49dabc Mon Sep 17 00:00:00 2001 From: Jan-Lukas Wynen Date: Fri, 19 Jan 2024 16:03:15 +0100 Subject: [PATCH] Just continue on unauthorized --- src/scitacean/testing/backend/_backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scitacean/testing/backend/_backend.py b/src/scitacean/testing/backend/_backend.py index 866666fa..ca231548 100644 --- a/src/scitacean/testing/backend/_backend.py +++ b/src/scitacean/testing/backend/_backend.py @@ -95,6 +95,8 @@ def _can_connect() -> tuple[bool, str]: return False, str(err) if response.ok: return True, "" + if response.status_code == 401: + return True, "" return False, str(f"{response}: {response.text}")