Skip to content

Commit 32e3371

Browse files
authored
Merge pull request #21880 from mvdbeek/limit_quick_load
[25.1] Fix loading non-tool files from watched tool directories
2 parents c9436a5 + 020fcfc commit 32e3371

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • lib/galaxy/tool_util/toolbox

‎lib/galaxy/tool_util/toolbox/base.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,8 @@ def __watch_directory(
11461146
force_watch: bool = False,
11471147
) -> None:
11481148
def quick_load(tool_file: "StrPath", async_load: bool = True) -> Union[str, None]:
1149+
if not self._looks_like_a_tool(str(tool_file)):
1150+
return None
11491151
try:
11501152
tool = self.load_tool(tool_file)
11511153
self.__add_tool(tool, load_panel_dict, elems)

0 commit comments

Comments
 (0)