diff --git a/apps/agent/agent/middleware.py b/apps/agent/agent/middleware.py index da0f6d6d..8c7db6c7 100644 --- a/apps/agent/agent/middleware.py +++ b/apps/agent/agent/middleware.py @@ -45,9 +45,7 @@ def _extract_tool_name(request: ToolCallRequest | None) -> str | None: return None -def _to_error_payload( - e: Exception, request: ToolCallRequest | None = None -) -> dict[str, str]: +def _to_error_payload(e: Exception, request: ToolCallRequest | None = None) -> dict[str, str]: data: dict[str, str] = { "error": str(e), "error_type": e.__class__.__name__, diff --git a/apps/agent/agent/tools/commit_and_open_pr.py b/apps/agent/agent/tools/commit_and_open_pr.py index 3c644767..c29078c1 100644 --- a/apps/agent/agent/tools/commit_and_open_pr.py +++ b/apps/agent/agent/tools/commit_and_open_pr.py @@ -91,4 +91,4 @@ def commit_and_open_pr( "title": title, "body": body, "commit_message": commit_message or title, - } \ No newline at end of file + }