Minor fix

This commit is contained in:
Dion Moult
2022-07-26 10:33:40 +10:00
parent fafdc76494
commit 7de454337d
4 changed files with 26 additions and 2 deletions
@@ -62,7 +62,7 @@ class Usecase:
break # We have an infinite loop due to a cyclic graph
if is_cyclic:
raise Exception("Task graph is cyclic and so critical path method cannot be performed.")
raise RecursionError("Task graph is cyclic and so critical path method cannot be performed.")
return
self.pending_nodes = set(self.g.nodes)