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"]