Fix asyncio.all_tasks() call

This commit is contained in:
Marek Marczykowski-Górecki 2020-12-03 00:59:13 +01:00
parent d5abe7b341
commit b4d6080f7b
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -459,7 +459,7 @@ def format_dependencies_list(dependencies):
def loop_shutdown():
pending = asyncio.Task.all_tasks()
pending = asyncio.all_tasks()
for task in pending:
with suppress(asyncio.CancelledError):
task.cancel()