Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f355aa3

Browse filesBrowse files
authored
Merge pull request fluentpython#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
Copy full SHA for f355aa3

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎20-executors/getflags/flags2_asyncio.py

Copy file name to clipboardExpand all lines: 20-executors/getflags/flags2_asyncio.py
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.