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: 5 additions & 0 deletions scripts/community_stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ def main():
print(f"Error: GitHub contributor data not found at {github_data_file}")
print("Please run: curl -s -H 'Accept: application/vnd.github.v3+json' 'https://api.github.com/repos/block/goose/stats/contributors' > /tmp/github_contributors.json")
sys.exit(1)
except json.JSONDecodeError as e:
print(f"Error: Invalid JSON in {github_data_file}")
print(f"Details: {e}")
print("Please ensure the file contains valid JSON from the GitHub API.")
sys.exit(1)

# Process contributors
contributor_stats = []
Expand Down