From 3983b7fbe493d2816e95b349be2cad08f7cbc675 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 22 Apr 2021 20:17:00 +0200 Subject: [PATCH] lib: don't send SuspiciousOperation to sentry Signed-off-by: Jens Langhammer --- authentik/lib/sentry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/lib/sentry.py b/authentik/lib/sentry.py index 0decc5f6c..df3704ba9 100644 --- a/authentik/lib/sentry.py +++ b/authentik/lib/sentry.py @@ -6,7 +6,7 @@ from billiard.exceptions import WorkerLostError from botocore.client import ClientError from celery.exceptions import CeleryError from channels_redis.core import ChannelFull -from django.core.exceptions import DisallowedHost, ValidationError +from django.core.exceptions import SuspiciousOperation, ValidationError from django.db import InternalError, OperationalError, ProgrammingError from django_redis.exceptions import ConnectionInterrupted from docker.errors import DockerException @@ -36,7 +36,7 @@ def before_send(event: dict, hint: dict) -> Optional[dict]: OperationalError, InternalError, ProgrammingError, - DisallowedHost, + SuspiciousOperation, ValidationError, # Redis errors RedisConnectionError,