fix: tool loading bug
This commit is contained in:
parent
ef3332bce1
commit
6794f8de5b
1 changed files with 4 additions and 1 deletions
|
|
@ -60,7 +60,10 @@ def list_tools():
|
|||
|
||||
for tool in ALL_TOOLS_NAMES:
|
||||
tool_params = util.get_tool_params(util.get_tool_by_name(tool))
|
||||
if tool_params and tool_params.get("name") in settings.tools or settings.dev:
|
||||
if tool_params and (
|
||||
tool_params.get("name") in settings.tools
|
||||
or (tool_params.get("name") and settings.dev)
|
||||
):
|
||||
tools.append(tool_params["name"])
|
||||
|
||||
# Add Tool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue