lib: sentry ignore Redis and OSError
This commit is contained in:
parent
07b7951390
commit
1d22e30c70
|
@ -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"]
|
||||
|
|
Reference in a new issue