2 parents c9436a5 + 020fcfc commit 32e3371Copy full SHA for 32e3371
1 file changed
lib/galaxy/tool_util/toolbox/base.py
@@ -1146,6 +1146,8 @@ def __watch_directory(
1146
force_watch: bool = False,
1147
) -> None:
1148
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
1151
try:
1152
tool = self.load_tool(tool_file)
1153
self.__add_tool(tool, load_panel_dict, elems)
0 commit comments