Open iritkatriel opened 3 hours ago
There is a break in a finally clause in: https://github.com/aio-libs/aiohttp/blob/e7d1d6a488d89520f2f897d11004ad168884fe5f/aiohttp/web_protocol.py#L647
This can swallow any in-flight exception (like a BaseException from the try block or any exception from the except blocks).
BaseException
try
except blocks
See also https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions.
N/A
NA
Source code, main branch.
All
Server
No response
Feel free to fix it.
Describe the bug
There is a break in a finally clause in: https://github.com/aio-libs/aiohttp/blob/e7d1d6a488d89520f2f897d11004ad168884fe5f/aiohttp/web_protocol.py#L647
This can swallow any in-flight exception (like a
BaseException
from thetry
block or any exception from theexcept blocks
).See also https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions.
To Reproduce
N/A
Expected behavior
NA
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
propcache Version
yarl Version
OS
All
Related component
Server
Additional context
No response
Code of Conduct