We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
None
1 parent dd8e24e commit 8d45f9cCopy full SHA for 8d45f9c
CHANGES/3355.bugfix
@@ -0,0 +1 @@
1
+Fixed a transport is :data:`None` error -- by :user:`Dreamsorcerer`.
aiohttp/connector.py
@@ -1121,6 +1121,9 @@ async def _start_tls_connection(
1121
f"[{type_err!s}]"
1122
) from type_err
1123
else:
1124
+ if tls_transport is None:
1125
+ msg = "Failed to start TLS (possibly caused by closing transport)"
1126
+ raise client_error(req.connection_key, OSError(msg))
1127
tls_proto.connection_made(
1128
tls_transport
1129
) # Kick the state machine of the new TLS protocol
0 commit comments