diff --git a/libs/langgraph/langgraph/graph/graph.py b/libs/langgraph/langgraph/graph/graph.py index 418bb3a7e..7e20d1c26 100644 --- a/libs/langgraph/langgraph/graph/graph.py +++ b/libs/langgraph/langgraph/graph/graph.py @@ -194,7 +194,9 @@ def add_node( "Node name must be provided if action is not a function" ) if action is None: - raise RuntimeError("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: