mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
oauth2 do not throw exception in case server is not reachable
This commit is contained in:
parent
d2be086cd1
commit
e0d20edbcd
1 changed files with 2 additions and 5 deletions
|
@ -61,9 +61,6 @@ class Auth(auth.BaseAuth):
|
||||||
):
|
):
|
||||||
return login
|
return login
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
raise RuntimeError(
|
logger.critical("Failed to authenticate against OAuth2 server %s: %s" % (self._endpoint, e))
|
||||||
"Failed to authenticate against oauth server %r: %s"
|
logger.warning("User failed to authenticate using OAuth2: %r" % login)
|
||||||
% (self._endpoint, e)
|
|
||||||
) from e
|
|
||||||
logger.warning("User %s failed to authenticate" % (str(login)))
|
|
||||||
return ""
|
return ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue