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