We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d27348 commit 1d1b0e9Copy full SHA for 1d1b0e9
Lib/asyncio/tools.py
@@ -64,9 +64,6 @@ def _cor_node(parent_key, frame_name):
64
65
66
def _roots(id2label, children):
67
- # roots = [n for n, lbl in id2label.items() if lbl == "Task-1"]
68
- # if roots:
69
- # return roots
70
all_children = {c for kids in children.values() for c in kids}
71
return [n for n in id2label if n not in all_children]
72
@@ -183,8 +180,8 @@ def _print_cycle_exception(exception: CycleFoundException):
183
180
try:
184
181
tasks = get_all_awaited_by(args.pid)
185
182
except RuntimeError as e:
186
- while e.__cause__ is not None:
187
- e = e.__cause__
+ while e.__context__ is not None:
+ e = e.__context__
188
print(f"Error retrieving tasks: {e}")
189
sys.exit(1)
190
0 commit comments