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
@@ -44,7 +44,7 @@ class Usecase:
else:
print("... is a predecessor to ...", debug_task)
print("... which is cyclically a predecessor to ...", task)
raise Exception("Recursive tasks found. Could not cascade schedule.")
raise RecursionError("Recursive tasks found. Could not cascade schedule.")
if not task.TaskTime:
return
@@ -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)