Skip to content

Commit 41b5fd5

Browse files
committed
Adjusts exception documentation in SentryAsgiMiddleware for clarity
1 parent 33b11cc commit 41b5fd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/asgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ def __init__(
147147

148148
def _capture_lifespan_exception(self, exc):
149149
# type: (Exception) -> None
150-
"""Capture exceptions from lifespan handlers.
150+
"""Capture exceptions raise in application lifespan handlers.
151151
152152
The separate function is needed to support overriding in derived integrations that use different catching mechanisms.
153153
"""
154154
return _capture_exception(exc=exc, mechanism_type=self.mechanism_type)
155155

156156
def _capture_request_exception(self, exc):
157157
# type: (Exception) -> None
158-
"""Capture exceptions from request handlers.
158+
"""Capture exceptions raised in incoming request handlers.
159159
160160
The separate function is needed to support overriding in derived integrations that use different catching mechanisms.
161161
"""

0 commit comments

Comments
 (0)