Skip to content

Commit d5e0680

Browse files
committed
fix: Catch HTTPException instead of HTTPError for aiohttp
1 parent 3c39268 commit d5e0680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/aiohttp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from sentry_sdk.utils import capture_internal_exceptions, event_from_exception
1010

1111
import asyncio
12-
from aiohttp.web import Application, HTTPError
12+
from aiohttp.web import Application, HTTPException
1313

1414

1515
class AioHttpIntegration(Integration):
@@ -42,7 +42,7 @@ async def inner():
4242

4343
try:
4444
response = await old_handle(self, request)
45-
except HTTPError:
45+
except HTTPException:
4646
raise
4747
except Exception:
4848
reraise(*_capture_exception(hub))

0 commit comments

Comments
 (0)