Skip to content

Commit 169177f

Browse files
committed
Override request exception catcher for litestar
1 parent 4f1963c commit 169177f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sentry_sdk/integrations/litestar.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ def __init__(self, app, span_origin=LitestarIntegration.origin):
8787
span_origin=span_origin,
8888
)
8989

90+
def _capture_request_exception(self, exc):
91+
# type: (Exception) -> None
92+
"""Ignore exceptions for requests here: we catch them in Litestar.after_exception handler."""
93+
9094

9195
def patch_app_init():
9296
# type: () -> None
@@ -297,6 +301,7 @@ def exception_handler(exc, scope):
297301
):
298302
return
299303

304+
print("HANDLING EXC", exc)
300305
event, hint = event_from_exception(
301306
exc,
302307
client_options=sentry_sdk.get_client().options,

0 commit comments

Comments
 (0)