From 5ab6f779828032bddf4a12d7a1b97dc60308ac03 Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Mon, 12 May 2025 16:29:49 +0300 Subject: [PATCH] Fix invalid channels error message (#4357) # PR Summary This small PR resolves the error formatting in `libs/langgraph/langgraph/pregel/algo.py` so the `proc.channels` will be evaluated in the message. Signed-off-by: Emmanuel Ferdman --- libs/langgraph/langgraph/pregel/algo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/pregel/algo.py b/libs/langgraph/langgraph/pregel/algo.py index 33c3bf2bb..e6da80020 100644 --- a/libs/langgraph/langgraph/pregel/algo.py +++ b/libs/langgraph/langgraph/pregel/algo.py @@ -1069,7 +1069,7 @@ def _proc_input( return MISSING else: raise RuntimeError( - "Invalid channels type, expected list or dict, got {proc.channels}" + f"Invalid channels type, expected list or dict, got {proc.channels}" ) # If the process has a mapper, apply it to the value