mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
A tripped breaker answers in ScreenScraper's place, so the empty match it produces is not a miss and must not clear the rom's stored ss_id. The scan learned that by sampling the module-wide is_breaker_tripped() at three points, which reads another rom's trip as this rom's evidence. SSHandler now raises ScreenScraperExhaustedError instead of swallowing the breaker's error, carrying the match it would have returned so the name the filename lookup derives locally (Switch title database, MAME, PS2 OPL) still reaches the scan. fetch_ss_rom catches it the way it already catches ScreenScraperRateLimitError, and drops ScreenScraper from attempted_sources from a plain local, so the signal is exactly this rom's own lookups. Also folds in a cleanup pass over the branch: the dead default_factory arm in _ScanState.reset(), one home for the ssuserInfos.php path, asyncio.wait_for around the quota probe so it cannot block behind a media download holding the concurrency slot, and shared fixtures for the ScreenScraper tests. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>