Skip to content

Commit 0df382f

Browse files
authored
Update graphlib.py
1 parent 1f22c70 commit 0df382f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/graphlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def prepare(self):
105105
# they can continue using the instance to grab as many
106106
# nodes as possible before cycles block more progress
107107
if cycle := self._find_cycle()
108-
raise CycleError(f"nodes are in a cycle: {cycle}")
108+
raise CycleError(f"nodes are in a cycle", cycle)
109109

110110
def get_ready(self):
111111
"""Return a tuple of all the ready nodes.

0 commit comments

Comments
 (0)