HomeSoftware Heritage

backends: Report only relevant exceptions to sentry

Description

backends: Report only relevant exceptions to sentry

When catching KeycloakError exceptions, other exception types
will be then raised like ValueError or AuthenticationFailed.

Those will be processed by django applications using these auth
middlewares so there is no need to duplicate error reports in
sentry here.

Details

Provenance
anlambertAuthored on Apr 14 2022, 11:06 AM
anlambertPushed on Apr 14 2022, 1:17 PM
Differential Revision
D7575: backends: Report only relevant exceptions to sentry
Parents
rDAUTH882f35e4909e: Add .git-blame-ignore-revs file with automatic reformatting commits
Branches
Unknown
Tags
Unknown
Build Status
Buildable 28465
Build 44504: test-and-buildJenkins console · Jenkins