lib: don't send SuspiciousOperation to sentry

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-22 20:17:00 +02:00
parent d75284a587
commit 3983b7fbe4
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from billiard.exceptions import WorkerLostError
from botocore.client import ClientError from botocore.client import ClientError
from celery.exceptions import CeleryError from celery.exceptions import CeleryError
from channels_redis.core import ChannelFull 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.db import InternalError, OperationalError, ProgrammingError
from django_redis.exceptions import ConnectionInterrupted from django_redis.exceptions import ConnectionInterrupted
from docker.errors import DockerException from docker.errors import DockerException
@ -36,7 +36,7 @@ def before_send(event: dict, hint: dict) -> Optional[dict]:
OperationalError, OperationalError,
InternalError, InternalError,
ProgrammingError, ProgrammingError,
DisallowedHost, SuspiciousOperation,
ValidationError, ValidationError,
# Redis errors # Redis errors
RedisConnectionError, RedisConnectionError,