From 1d22e30c70a633348db5a27fb2219670f4854f74 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 19 Feb 2020 17:13:44 +0100 Subject: [PATCH] lib: sentry ignore Redis and OSError --- passbook/lib/sentry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passbook/lib/sentry.py b/passbook/lib/sentry.py index f0ae95f76..886696e26 100644 --- a/passbook/lib/sentry.py +++ b/passbook/lib/sentry.py @@ -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"]