mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-02 01:23:07 +00:00
Merge pull request #22662
* core: runnables: special handling GeneratorExit because no error
This commit is contained in:
parent
ad50702934
commit
4530d851e4
@ -1892,6 +1892,8 @@ class Runnable(Generic[Input, Output], ABC):
|
||||
final_input_supported = False
|
||||
else:
|
||||
final_input = ichunk
|
||||
except GeneratorExit:
|
||||
run_manager.on_chain_end(final_output, inputs=final_input)
|
||||
except BaseException as e:
|
||||
run_manager.on_chain_error(e, inputs=final_input)
|
||||
raise
|
||||
|
Loading…
Reference in New Issue
Block a user