lib: sentry ignore Redis and OSError

This commit is contained in:
Jens Langhammer 2020-02-19 17:13:44 +01:00
parent 07b7951390
commit 1d22e30c70
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ def before_send(event, hint):
from billiard.exceptions import WorkerLostError
from django.core.exceptions import DisallowedHost
from botocore.client import ClientError
from redis.exceptions import RedisError
ignored_classes = (
OperationalError,
@ -26,6 +27,8 @@ def before_send(event, hint):
KeyboardInterrupt,
ClientError,
ValidationError,
OSError,
RedisError,
)
if "exc_info" in hint:
_exc_type, exc_value, _ = hint["exc_info"]