Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5105588

Browse files
authored
Update flags2_asyncio.py
Fix `error` variable not being reset when a successful coroutine call
1 parent 28d6d03 commit 5105588

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

20-executors/getflags/flags2_asyncio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ async def supervisor(cc_list: list[str],
7979
error = exc # <10>
8080
except KeyboardInterrupt:
8181
break
82+
else:
83+
error = None
8284

8385
if error:
8486
status = DownloadStatus.ERROR # <11>

0 commit comments

Comments
 (0)