bugfix: avoid runtime NameError by using string annotations for Event and Hint

This commit is contained in:
Rajat Ahuja 2025-06-30 13:46:11 -04:00
parent 2d9e48e681
commit 37a934cfa9
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ async def setup_admin_jwt():
SENTRY_ENABLED = settings.SENTRY.ENABLED
if SENTRY_ENABLED:
def before_send(event: Event, hint: Hint) -> Event | None:
def before_send(event: "Event", hint: "Hint") -> "Event | None":
if "exc_info" in hint:
_, exc_value, _ = hint["exc_info"]
# Filter out HonchoExceptions from being sent to Sentry