From e96934533e48888a648d60f88e585cd54f2f8fce Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Thu, 19 Sep 2024 15:06:39 -0700 Subject: [PATCH] Update graph.py --- libs/langgraph/langgraph/graph/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/graph/graph.py b/libs/langgraph/langgraph/graph/graph.py index 2a1e8c8ad..418bb3a7e 100644 --- a/libs/langgraph/langgraph/graph/graph.py +++ b/libs/langgraph/langgraph/graph/graph.py @@ -194,7 +194,7 @@ def add_node( "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: