Skip to content

Commit

Permalink
Update aiohttp/connector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Aug 9, 2022
1 parent c04286b commit 15677f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiohttp/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,9 +1365,9 @@ async def _create_connection(
await asyncio.sleep(0)
# other option is to manually set transport like
# `proto.transport = trans`
except asyncio.TimeoutError:
raise
except OSError as exc:
if exc.errno is None and isinstance(exc, asyncio.TimeoutError):
raise
raise ClientConnectorError(req.connection_key, exc) from exc

return cast(ResponseHandler, proto)

0 comments on commit 15677f5

Please sign in to comment.