Skip to content

Commit

Permalink
Merge 8305f8f into 8c25b44
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-v authored Feb 26, 2021
2 parents 8c25b44 + 8305f8f commit e8323ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES/5502.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Use variable ``client_error`` instead of a hard-coded ``ClientConnectorError`` exception
in ``TCPConnector``.
4 changes: 2 additions & 2 deletions aiohttp/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def drop_exception(fut: "asyncio.Future[List[Dict[str, Any]]]") -> None:
except OSError as exc:
# in case of proxy it is not ClientProxyConnectionError
# it is problem of resolving proxy ip itself
raise ClientConnectorError(req.connection_key, exc) from exc
raise client_error(req.connection_key, exc) from exc

last_exc = None # type: Optional[Exception]

Expand All @@ -1008,7 +1008,7 @@ def drop_exception(fut: "asyncio.Future[List[Dict[str, Any]]]") -> None:
req=req,
client_error=client_error,
)
except ClientConnectorError as exc:
except client_error as exc:
last_exc = exc
continue

Expand Down

0 comments on commit e8323ac

Please sign in to comment.