Files
galaxy/lib
mvdbeek 020fcfcb25 Fix loading non-tool XML files from watched tool directories
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.
2026-02-18 13:59:49 +01:00
..