We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f37d9e3 commit 40d4551Copy full SHA for 40d4551
Lib/asyncio/base_events.py
@@ -1171,8 +1171,8 @@ async def create_connection(
1171
raise OSError('Multiple exceptions: {}'.format(
1172
', '.join(str(exc) for exc in exceptions)))
1173
else:
1174
- # No exceptions were collected, raise a generic connection error
1175
- raise OSError('create_connection failed')
+ # No exceptions were collected, raise a timeout error
+ raise TimeoutError('create_connection failed')
1176
finally:
1177
exceptions = None
1178
0 commit comments