Skip to content

Commit

Permalink
fix: self.method should method in api_tool.py
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
  • Loading branch information
yihong0618 committed Dec 21, 2024
1 parent ef7e47d commit dfd495b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/tools/tool/api_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def do_http_request(
)
return response
else:
raise ValueError(f"Invalid http method {self.method}")
raise ValueError(f"Invalid http method {method}")

def _convert_body_property_any_of(
self, property: dict[str, Any], value: Any, any_of: list[dict[str, Any]], max_recursive=10
Expand Down

0 comments on commit dfd495b

Please sign in to comment.