bugfix: avoid runtime NameError by using string annotations for Event and Hint
This commit is contained in:
parent
2d9e48e681
commit
37a934cfa9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue