Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Oct 11, 2024
1 parent c6a450b commit 561aa30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/langgraph/langgraph/pregel/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ def _suppress_interrupt(
self.output = read_channels(self.channels, self.output_keys)
if suppress:
# suppress interrupt
self._emit("updates", lambda: iter([{INTERRUPT: exc_value.args[0]}]))
self._emit(
"updates",
lambda: iter([{INTERRUPT: cast(GraphInterrupt, exc_value).args[0]}]),
)
return True

def _emit(
Expand Down

0 comments on commit 561aa30

Please sign in to comment.