Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
sentry: Avoid importing rate_limiting at topic level.
Tim Abbottd876e1215780
diff --git a/zproject/sentry.py b/zproject/sentry.pyindex b45864c5316..3f100cc28cb 100644--- a/zproject/sentry.py+++ b/zproject/sentry.py@@ -9,7 +9,6 @@ from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegrationfrom sentry_sdk.utils import capture_internal_exceptionsfrom version import ZULIP_VERSION-from zerver.lib.request import get_request_notesif TYPE_CHECKING:from sentry_sdk._types import Event, Hint@@ -23,7 +22,7 @@ def add_context(event: "Event", hint: "Hint") -> Optional["Event"]:return Nonefrom django.conf import settings- from zerver.lib.request import get_current_request+ from zerver.lib.request import get_current_request, get_request_notesfrom zerver.models import get_user_profile_by_idwith capture_internal_exceptions():