Skip to content

Commit 9ba2d5f

Browse files
authored
fix(aiohttp): AioHttpIntegration sentry_app_handle() now ignores ConnectionResetError (#1331)
1 parent 6649e22 commit 9ba2d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/aiohttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async def sentry_app_handle(self, request, *args, **kwargs):
112112
except HTTPException as e:
113113
transaction.set_http_status(e.status_code)
114114
raise
115-
except asyncio.CancelledError:
115+
except (asyncio.CancelledError, ConnectionResetError):
116116
transaction.set_status("cancelled")
117117
raise
118118
except Exception:

0 commit comments

Comments
 (0)