mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-31 02:28:09 +08:00
The quick_load callback in __watch_directory is used both during the initial directory scan (where _looks_like_a_tool is checked beforehand) and as a callback for the ToolWatcher (where no such check occurs). When the watcher detects a file system event for any .xml file in a watched directory, it calls quick_load directly without verifying the file is actually a tool. This causes files like macros.xml to be loaded as tools and fail with "Missing tool 'id'" errors. Add a _looks_like_a_tool guard inside quick_load itself so the check is always applied regardless of the caller.