mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-01 21:28:10 +00:00
Fix ruff format for nl2sql_tool.py
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -463,8 +463,7 @@ class NL2SQLTool(BaseTool):
|
||||
self._validate_query(sql_query)
|
||||
if self.require_approval and not self._request_approval(sql_query):
|
||||
return (
|
||||
f"Query execution was rejected by the human reviewer: "
|
||||
f"{sql_query}"
|
||||
f"Query execution was rejected by the human reviewer: {sql_query}"
|
||||
)
|
||||
data = self.execute_sql(sql_query)
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user