mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-26 13:59:49 +00:00
bagatur comment
This commit is contained in:
@@ -681,11 +681,7 @@ class ChildTool(BaseTool):
|
|||||||
)
|
)
|
||||||
status = "error"
|
status = "error"
|
||||||
except ToolException as e:
|
except ToolException as e:
|
||||||
if not self.handle_tool_error:
|
raise e
|
||||||
error_to_raise = e
|
|
||||||
else:
|
|
||||||
content = _handle_tool_error(e, flag=self.handle_tool_error)
|
|
||||||
status = "error"
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise ToolException(str(e)) from e
|
raise ToolException(str(e)) from e
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
@@ -808,11 +804,7 @@ class ChildTool(BaseTool):
|
|||||||
)
|
)
|
||||||
status = "error"
|
status = "error"
|
||||||
except ToolException as e:
|
except ToolException as e:
|
||||||
if not self.handle_tool_error:
|
raise e
|
||||||
error_to_raise = e
|
|
||||||
else:
|
|
||||||
content = _handle_tool_error(e, flag=self.handle_tool_error)
|
|
||||||
status = "error"
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise ToolException(str(e)) from e
|
raise ToolException(str(e)) from e
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
|
Reference in New Issue
Block a user