root: fix import error on non debug builds (#5424)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
cc8f52b502
commit
f36a5a053f
|
@ -15,7 +15,6 @@ from h11 import LocalProtocolError
|
||||||
from ldap3.core.exceptions import LDAPException
|
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, ResponseError
|
from redis.exceptions import RedisError, ResponseError
|
||||||
from requests_mock.exceptions import NoMockAddress
|
|
||||||
from rest_framework.exceptions import APIException
|
from rest_framework.exceptions import APIException
|
||||||
from sentry_sdk import HttpTransport
|
from sentry_sdk import HttpTransport
|
||||||
from sentry_sdk import init as sentry_sdk_init
|
from sentry_sdk import init as sentry_sdk_init
|
||||||
|
@ -141,8 +140,6 @@ def before_send(event: dict, hint: dict) -> Optional[dict]:
|
||||||
Http404,
|
Http404,
|
||||||
# AsyncIO
|
# AsyncIO
|
||||||
CancelledError,
|
CancelledError,
|
||||||
# Requests
|
|
||||||
NoMockAddress,
|
|
||||||
)
|
)
|
||||||
exc_value = None
|
exc_value = None
|
||||||
if "exc_info" in hint:
|
if "exc_info" in hint:
|
||||||
|
|
Reference in New Issue