Skip to content

Commit 0fb0fcb

Browse files
Update Lib/asyncio/base_events.py
Co-authored-by: Kumar Aditya <[email protected]>
1 parent 99dffd9 commit 0fb0fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ async def create_connection(
11611161
raise ExceptionGroup("create_connection failed", exceptions)
11621162
if len(exceptions) == 1:
11631163
raise exceptions[0]
1164-
elif len(exceptions) > 1:
1164+
elif exceptions:
11651165
# If they all have the same str(), raise one.
11661166
model = str(exceptions[0])
11671167
if all(str(exc) == model for exc in exceptions):

0 commit comments

Comments
 (0)