mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
fix: None Type tool installation during startup
Co-Authored-By: Adam Outler <adamoutler@gmail.com>
This commit is contained in:
parent
bb21bf5239
commit
faf01bdeac
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ def install_tool_and_function_dependencies():
|
|||
all_dependencies += f"{dependencies}, "
|
||||
for tool in tool_list:
|
||||
# Only install requirements for admin tools
|
||||
if tool.user.role == "admin":
|
||||
if tool.user and tool.user.role == "admin":
|
||||
frontmatter = extract_frontmatter(replace_imports(tool.content))
|
||||
if dependencies := frontmatter.get("requirements"):
|
||||
all_dependencies += f"{dependencies}, "
|
||||
|
|
|
|||
Loading…
Reference in a new issue