mirror of
https://github.com/github/spec-kit.git
synced 2026-03-17 02:43:08 +00:00
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:
@@ -1158,6 +1158,7 @@ class ExtensionCatalog:
|
|||||||
age = (datetime.now(timezone.utc) - cached_at).total_seconds()
|
age = (datetime.now(timezone.utc) - cached_at).total_seconds()
|
||||||
is_valid = age < self.CACHE_DURATION
|
is_valid = age < self.CACHE_DURATION
|
||||||
except (json.JSONDecodeError, ValueError, KeyError):
|
except (json.JSONDecodeError, ValueError, KeyError):
|
||||||
|
# If metadata is invalid or missing expected fields, treat cache as invalid
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Use cache if valid
|
# Use cache if valid
|
||||||
|
|||||||
Reference in New Issue
Block a user