From e0d20edbcd8116790dd02b387b04177c6ca46e69 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 2 Feb 2025 09:04:42 +0100 Subject: [PATCH] oauth2 do not throw exception in case server is not reachable --- radicale/auth/oauth2.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/radicale/auth/oauth2.py b/radicale/auth/oauth2.py index 7ca5eb9d..838a786e 100644 --- a/radicale/auth/oauth2.py +++ b/radicale/auth/oauth2.py @@ -61,9 +61,6 @@ class Auth(auth.BaseAuth): ): return login except OSError as e: - raise RuntimeError( - "Failed to authenticate against oauth server %r: %s" - % (self._endpoint, e) - ) from e - logger.warning("User %s failed to authenticate" % (str(login))) + logger.critical("Failed to authenticate against OAuth2 server %s: %s" % (self._endpoint, e)) + logger.warning("User failed to authenticate using OAuth2: %r" % login) return ""