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 99dffd9 commit 0fb0fcbCopy full SHA for 0fb0fcb
Lib/asyncio/base_events.py
@@ -1161,7 +1161,7 @@ async def create_connection(
1161
raise ExceptionGroup("create_connection failed", exceptions)
1162
if len(exceptions) == 1:
1163
raise exceptions[0]
1164
- elif len(exceptions) > 1:
+ elif exceptions:
1165
# If they all have the same str(), raise one.
1166
model = str(exceptions[0])
1167
if all(str(exc) == model for exc in exceptions):
0 commit comments