Skip to content
Snippets Groups Projects
Commit fc767b79 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

django/backends: Add missing exception capture by sentry

This should help debugging keycloak authentication issues.
parent 508b476d
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,7 @@ class OIDCAuthorizationCodePKCEBackend:
if error_msg == "invalid_grant: Session not active":
# user session no longer active, remove oidc profile from cache
cache.delete(cache_key)
sentry_sdk.capture_exception(ke)
return None
except Exception as e:
sentry_sdk.capture_exception(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment