From c22ddc5394b922153bd22497d00643b5ed694397 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 2 Nov 2019 16:27:28 +0000 Subject: [PATCH] root(minor): catch keyboardinput and s3 error from sentry --- passbook/lib/sentry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passbook/lib/sentry.py b/passbook/lib/sentry.py index 041ee4058..98b833292 100644 --- a/passbook/lib/sentry.py +++ b/passbook/lib/sentry.py @@ -11,6 +11,7 @@ def before_send(event, hint): from rest_framework.exceptions import APIException from billiard.exceptions import WorkerLostError from django.core.exceptions import DisallowedHost + from botocore.client import ClientError ignored_classes = ( OperationalError, ConnectionInterrupted, @@ -20,6 +21,8 @@ def before_send(event, hint): WorkerLostError, DisallowedHost, ConnectionResetError, + KeyboardInterrupt, + ClientError ) if 'exc_info' in hint: _exc_type, exc_value, _ = hint['exc_info']