providers/saml: fix CannotHandleAssertion Error still being sent to sentry
This commit is contained in:
@ -32,13 +32,11 @@ def before_send(event, hint):
|
||||
ValidationError,
|
||||
OSError,
|
||||
RedisError,
|
||||
SentryIgnoredException,
|
||||
)
|
||||
if "exc_info" in hint:
|
||||
_exc_type, exc_value, _ = hint["exc_info"]
|
||||
# pylint: disable=consider-merging-isinstance
|
||||
if isinstance(exc_value, ignored_classes) or isinstance(
|
||||
exc_value, SentryIgnoredException
|
||||
):
|
||||
if isinstance(exc_value, ignored_classes):
|
||||
LOGGER.info("Supressing error %r", exc_value)
|
||||
return None
|
||||
return event
|
||||
|
Reference in New Issue
Block a user