Skip to content

Commit

Permalink
fix: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Sep 30, 2024
1 parent aa55328 commit 18e2912
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/aiohappyeyeballs/_staggered.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,12 @@ def _on_completion(
timer.cancel()

finally:
# If there are any tasks left, cancel them
# since we either have a winner or a KeyboardInterrupt
# We either have a winner or a KeyboardInterrupt
# or SystemExit.
#
# If there are any tasks left, cancel them and than
# wait them so they fill the exceptions list.
#
for task in tasks:
task.cancel()
with contextlib.suppress(asyncio.CancelledError):
Expand Down

0 comments on commit 18e2912

Please sign in to comment.