Potential fix for pull request finding 'Empty except'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
Manfred Riem
2026-02-27 15:16:52 -06:00
committed by GitHub
parent 8a1328cfbd
commit ece831e1a7

View File

@@ -1122,6 +1122,7 @@ class ExtensionCatalog:
age = (datetime.now(timezone.utc) - cached_at).total_seconds()
is_valid = age < self.CACHE_DURATION
except (json.JSONDecodeError, ValueError, KeyError):
# If metadata is invalid or missing expected fields, treat cache as invalid
pass
# Use cache if valid