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