fix: narrow empty except blocks and add explanatory comments

This commit is contained in:
Manfred Riem
2026-03-10 15:16:43 -05:00
parent 52f137ce84
commit 3ffef55954
2 changed files with 3 additions and 1 deletions

View File

@@ -1145,6 +1145,7 @@ class PresetCatalog:
if metadata.get("catalog_url") == catalog_url:
return json.loads(self.cache_file.read_text())
except (json.JSONDecodeError, OSError):
# Cache is corrupt or unreadable; fall through to network fetch
pass
try: