mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
Every gathered provider already resolved through a single loop that logs the failure, drops the source from the attempted set and falls back to an empty match. SteamGridDB, which searches on the names the other providers produce and so cannot join that gather, hand-wrote the same three steps again, and the search endpoint hand-wrote a third copy. Extract the loop body into `resolve_fetch` and route SteamGridDB through it. In the search endpoint the cover gathers now tolerate exceptions instead, so a failed lookup costs a thumbnail rather than the whole result set. That also covers Libretro, whose lookup had no guard at all and could fail the request. On the test side, the platform, rom and `fs_rom` scaffolding was written out three times across the two scan tests; it now lives in `tests/handler/scan_stubs.py`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>