From e28e97d5e0ae41ea468a7597668b95cfc1249b31 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Mon, 17 Mar 2025 18:39:13 -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 21f297b9e..dec608b62 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 exc_value is not None and 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(