From 51055887dd6cca6c0b67e1f0072ec33d1eaa6351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s=20=C3=81lvarez=20Restrepo?= Date: Sun, 26 Mar 2023 17:28:08 -0500 Subject: [PATCH] Update flags2_asyncio.py Fix `error` variable not being reset when a successful coroutine call --- 20-executors/getflags/flags2_asyncio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/20-executors/getflags/flags2_asyncio.py b/20-executors/getflags/flags2_asyncio.py index 4f1849a..b697840 100755 --- a/20-executors/getflags/flags2_asyncio.py +++ b/20-executors/getflags/flags2_asyncio.py @@ -79,6 +79,8 @@ async def supervisor(cc_list: list[str], error = exc # <10> except KeyboardInterrupt: break + else: + error = None if error: status = DownloadStatus.ERROR # <11>