diff --git a/libs/langgraph/langgraph/pregel/utils.py b/libs/langgraph/langgraph/pregel/utils.py index bb98cf63b..2b09f8f75 100644 --- a/libs/langgraph/langgraph/pregel/utils.py +++ b/libs/langgraph/langgraph/pregel/utils.py @@ -34,7 +34,7 @@ def find_subgraph_pregel(candidate: Runnable) -> Optional[Runnable]: if ( isinstance(c, Pregel) # subgraphs that disabled checkpointing are not considered - and candidate.checkpointer is not False + and c.checkpointer is not False ): return c elif isinstance(c, RunnableSequence) or isinstance(c, RunnableSeq):