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 d280f51 commit ab5f0c4
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 @@ -969,9 +969,9 @@ async def _wrap_create_connection(
raise ClientConnectorCertificateError(req.connection_key, exc) from exc
except ssl_errors as exc:
raise ClientConnectorSSLError(req.connection_key, exc) from exc
except asyncio.TimeoutError:
raise
except OSError as exc:
if exc.errno is None and isinstance(exc, asyncio.TimeoutError):
raise
raise client_error(req.connection_key, exc) from exc

def _warn_about_tls_in_tls(
Expand Down

0 comments on commit ab5f0c4

Please sign in to comment.