From 59e7c63c93daf12cfb42fc85bb7783c3991dd109 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Mon, 17 Mar 2025 18:38:37 -0700 Subject: [PATCH] Lint --- libs/langgraph/langgraph/pregel/loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/pregel/loop.py b/libs/langgraph/langgraph/pregel/loop.py index 0c007949e..21f297b9e 100644 --- a/libs/langgraph/langgraph/pregel/loop.py +++ b/libs/langgraph/langgraph/pregel/loop.py @@ -795,7 +795,7 @@ class PregelLoop(LoopProtocol): self.channels, ) # emit INTERRUPT if exception is empty (otherwise emitted by put_writes) - if not exc_value.args or not exc_value.args[0]: + if exc_value is not None and not exc_value.args or not exc_value.args[0]: self._emit( "updates", lambda: iter(