Skip to content

Commit b3bd629

Browse files
authored
Fix typo in starlette attribute check (#1566)
1 parent 075711f commit b3bd629

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry_sdk/integrations/starlette.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ async def _sentry_patched_exception_handler(self, *args, **kwargs):
146146
# type: (Any, Any, Any) -> None
147147
exp = args[0]
148148

149-
is_http_server_error = hasattr(exp, "staus_code") and exp.status_code >= 500
149+
is_http_server_error = (
150+
hasattr(exp, "status_code") and exp.status_code >= 500
151+
)
150152
if is_http_server_error:
151153
_capture_exception(exp, handled=True)
152154

0 commit comments

Comments
 (0)