Skip to content

Commit

Permalink
fix Future exception never retrieved in create_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Jorgensen committed Jan 17, 2024
1 parent 6c770dc commit d464c58
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion uvloop/loop.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,12 @@ cdef class Loop:
lai = &lai_static

if len(fs):
await aio_wait(fs)
try:
await aio_wait(fs)
except asyncio.CancelledError as exc:
for fut in fs:
fut.cancel()
raise exc from None

if rai is NULL:
ai_remote = f1.result()
Expand Down

0 comments on commit d464c58

Please sign in to comment.