Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion website/fetch_github_stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ def main() -> None:
for repo in sorted(current_repos):
entry = cache.get(repo)
if entry and "fetched_at" in entry:
fetched = datetime.fromisoformat(entry["fetched_at"])
try:
fetched = datetime.fromisoformat(entry["fetched_at"])
except (ValueError, TypeError):
continue
age_hours = (now - fetched).total_seconds() / 3600
if age_hours < CACHE_MAX_AGE_HOURS:
continue
Expand Down