From f36a5a053f866148dd385bccc59822b036b305dd Mon Sep 17 00:00:00 2001 From: Jens L Date: Sun, 30 Apr 2023 16:36:43 +0300 Subject: [PATCH] root: fix import error on non debug builds (#5424) Signed-off-by: Jens Langhammer --- authentik/lib/sentry.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/authentik/lib/sentry.py b/authentik/lib/sentry.py index 4f6f5c45a..70d7246ca 100644 --- a/authentik/lib/sentry.py +++ b/authentik/lib/sentry.py @@ -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: