mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-07 12:06:43 +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
|
final_input_supported = False
|
||||||
else:
|
else:
|
||||||
final_input = ichunk
|
final_input = ichunk
|
||||||
|
except GeneratorExit:
|
||||||
|
run_manager.on_chain_end(final_output, inputs=final_input)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
run_manager.on_chain_error(e, inputs=final_input)
|
run_manager.on_chain_error(e, inputs=final_input)
|
||||||
raise
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user