From c3c525a3f08da594c9c446286437e7e35ff79697 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 30 Sep 2020 15:55:59 +0200 Subject: [PATCH] lib: re-add Websockets error --- passbook/lib/sentry.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/passbook/lib/sentry.py b/passbook/lib/sentry.py index 0400a1c42..cca723895 100644 --- a/passbook/lib/sentry.py +++ b/passbook/lib/sentry.py @@ -2,6 +2,7 @@ from billiard.exceptions import WorkerLostError from botocore.client import ClientError from celery.exceptions import CeleryError +from channels_redis.core import ChannelFull from django.core.exceptions import DisallowedHost, ValidationError from django.db import InternalError, OperationalError, ProgrammingError from django_redis.exceptions import ConnectionInterrupted @@ -9,8 +10,8 @@ from ldap3.core.exceptions import LDAPException from redis.exceptions import ConnectionError as RedisConnectionError from redis.exceptions import RedisError from rest_framework.exceptions import APIException -from channels_redis.core import ChannelFull from structlog import get_logger +from websockets.exceptions import WebSocketException LOGGER = get_logger() @@ -41,6 +42,7 @@ def before_send(event, hint): CeleryError, LDAPException, ChannelFull, + WebSocketException, ) if "exc_info" in hint: _, exc_value, _ = hint["exc_info"]