root: fix import error on non debug builds (#5424)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-04-30 16:36:43 +03:00 committed by GitHub
parent cc8f52b502
commit f36a5a053f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -15,7 +15,6 @@ from h11 import LocalProtocolError
from ldap3.core.exceptions import LDAPException
from redis.exceptions import ConnectionError as RedisConnectionError
from redis.exceptions import RedisError, ResponseError
from requests_mock.exceptions import NoMockAddress
from rest_framework.exceptions import APIException
from sentry_sdk import HttpTransport
from sentry_sdk import init as sentry_sdk_init
@ -141,8 +140,6 @@ def before_send(event: dict, hint: dict) -> Optional[dict]:
Http404,
# AsyncIO
CancelledError,
# Requests
NoMockAddress,
)
exc_value = None
if "exc_info" in hint: