Skip to content

Commit

Permalink
oauth2 do not throw exception in case server is not reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Feb 2, 2025
1 parent d2be086 commit e0d20ed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions radicale/auth/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ def _login(self, login, password):
):
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 ""

0 comments on commit e0d20ed

Please sign in to comment.