Skip to content

Commit ece831e

Browse files
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>
1 parent 8a1328c commit ece831e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/specify_cli/extensions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,7 @@ def _fetch_single_catalog(self, entry: CatalogEntry, force_refresh: bool = False
11221122
age = (datetime.now(timezone.utc) - cached_at).total_seconds()
11231123
is_valid = age < self.CACHE_DURATION
11241124
except (json.JSONDecodeError, ValueError, KeyError):
1125+
# If metadata is invalid or missing expected fields, treat cache as invalid
11251126
pass
11261127

11271128
# Use cache if valid

0 commit comments

Comments
 (0)