Update graph.py

This commit is contained in:
Nuno Campos
2024-09-19 15:06:39 -07:00
committed by GitHub
parent a47dc2b634
commit e96934533e
+1 -1
View File
@@ -194,7 +194,7 @@ class Graph:
"Node name must be provided if action is not a function"
)
if action is None:
raise RuntimeError(f"Expected a function or Runnable action in add_node. Received None.")
raise RuntimeError("Expected a function or Runnable action in add_node. Received None.")
if node in self.nodes:
raise ValueError(f"Node `{node}` already present.")
if node == END or node == START: