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: