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

Skip to content

Commit f355aa3

Browse files
authored
Merge pull request #35 from charlielito/patch-1
Fix `error` variable not being reset when failure in a coroutine call in flags2_asyncio.py
2 parents 1907aea + 5105588 commit f355aa3

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)