From be47752f0ece96eba6e46b129ab42773675719c5 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Thu, 10 Oct 2024 11:15:54 +0200 Subject: [PATCH] Initialise to None --- libs/langgraph/langgraph/pregel/loop.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libs/langgraph/langgraph/pregel/loop.py b/libs/langgraph/langgraph/pregel/loop.py index 83ce36379..2ac371f2a 100644 --- a/libs/langgraph/langgraph/pregel/loop.py +++ b/libs/langgraph/langgraph/pregel/loop.py @@ -250,13 +250,7 @@ class PregelLoop: if self.config[CONF].get(CONFIG_KEY_CHECKPOINT_NS) else () ) - self.prev_checkpoint_config = ( - self.checkpoint_config - if self.checkpoint_config - and CONF in self.checkpoint_config - and CONFIG_KEY_CHECKPOINT_ID in self.checkpoint_config[CONF] - else None - ) + self.prev_checkpoint_config = None def put_writes(self, task_id: str, writes: Sequence[tuple[str, Any]]) -> None: """Put writes for a task, to be read by the next tick."""