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(