mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-04 12:32:12 +00:00
fix: resolve merge conflict in tool_error_handler.py
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
823291f841
commit
1104f494ee
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ class ToolErrorMiddleware(AgentMiddleware):
|
||||||
) -> ToolMessage | Command:
|
) -> ToolMessage | Command:
|
||||||
try:
|
try:
|
||||||
return handler(request)
|
return handler(request)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception("Error during tool call handling; request=%r", request)
|
logger.exception("Error during tool call handling; request=%r", request)
|
||||||
data = _to_error_payload(e, request)
|
data = _to_error_payload(e, request)
|
||||||
return ToolMessage(
|
return ToolMessage(
|
||||||
|
|
@ -94,7 +94,7 @@ class ToolErrorMiddleware(AgentMiddleware):
|
||||||
) -> ToolMessage | Command:
|
) -> ToolMessage | Command:
|
||||||
try:
|
try:
|
||||||
return await handler(request)
|
return await handler(request)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception("Error during tool call handling; request=%r", request)
|
logger.exception("Error during tool call handling; request=%r", request)
|
||||||
data = _to_error_payload(e, request)
|
data = _to_error_payload(e, request)
|
||||||
return ToolMessage(
|
return ToolMessage(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue