diff --git a/aiohttp/connector.py b/aiohttp/connector.py index 5bb2d7c771..160eb3b34c 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -1174,7 +1174,9 @@ def drop_exception(fut: "asyncio.Future[List[Dict[str, Any]]]") -> None: host = hinfo["host"] port = hinfo["port"] - server_hostname = (req.server_hostname or hinfo["hostname"]) if sslcontext else None + server_hostname = ( + (req.server_hostname or hinfo["hostname"]) if sslcontext else None + ) try: transp, proto = await self._wrap_create_connection(