From ed27e54761f840224ffd04f6d06173239ffe4feb Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Thu, 19 Sep 2024 16:41:46 -0700 Subject: [PATCH] Update graph.py --- libs/langgraph/langgraph/graph/graph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: