lib: re-add Websockets error
This commit is contained in:
parent
e699dfe88c
commit
c3c525a3f0
|
@ -2,6 +2,7 @@
|
||||||
from billiard.exceptions import WorkerLostError
|
from billiard.exceptions import WorkerLostError
|
||||||
from botocore.client import ClientError
|
from botocore.client import ClientError
|
||||||
from celery.exceptions import CeleryError
|
from celery.exceptions import CeleryError
|
||||||
|
from channels_redis.core import ChannelFull
|
||||||
from django.core.exceptions import DisallowedHost, ValidationError
|
from django.core.exceptions import DisallowedHost, ValidationError
|
||||||
from django.db import InternalError, OperationalError, ProgrammingError
|
from django.db import InternalError, OperationalError, ProgrammingError
|
||||||
from django_redis.exceptions import ConnectionInterrupted
|
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 ConnectionError as RedisConnectionError
|
||||||
from redis.exceptions import RedisError
|
from redis.exceptions import RedisError
|
||||||
from rest_framework.exceptions import APIException
|
from rest_framework.exceptions import APIException
|
||||||
from channels_redis.core import ChannelFull
|
|
||||||
from structlog import get_logger
|
from structlog import get_logger
|
||||||
|
from websockets.exceptions import WebSocketException
|
||||||
|
|
||||||
LOGGER = get_logger()
|
LOGGER = get_logger()
|
||||||
|
|
||||||
|
@ -41,6 +42,7 @@ def before_send(event, hint):
|
||||||
CeleryError,
|
CeleryError,
|
||||||
LDAPException,
|
LDAPException,
|
||||||
ChannelFull,
|
ChannelFull,
|
||||||
|
WebSocketException,
|
||||||
)
|
)
|
||||||
if "exc_info" in hint:
|
if "exc_info" in hint:
|
||||||
_, exc_value, _ = hint["exc_info"]
|
_, exc_value, _ = hint["exc_info"]
|
||||||
|
|
Reference in New Issue