root(minor): catch keyboardinput and s3 error from sentry
This commit is contained in:
parent
0544864a3f
commit
c22ddc5394
|
@ -11,6 +11,7 @@ def before_send(event, hint):
|
||||||
from rest_framework.exceptions import APIException
|
from rest_framework.exceptions import APIException
|
||||||
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
|
||||||
ignored_classes = (
|
ignored_classes = (
|
||||||
OperationalError,
|
OperationalError,
|
||||||
ConnectionInterrupted,
|
ConnectionInterrupted,
|
||||||
|
@ -20,6 +21,8 @@ def before_send(event, hint):
|
||||||
WorkerLostError,
|
WorkerLostError,
|
||||||
DisallowedHost,
|
DisallowedHost,
|
||||||
ConnectionResetError,
|
ConnectionResetError,
|
||||||
|
KeyboardInterrupt,
|
||||||
|
ClientError
|
||||||
)
|
)
|
||||||
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 New Issue