feat(launch): friendly GitHub-limit message on Generate; document the score formula

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shay
2026-11-30 06:12:22 -08:00
co-authored by Claude Opus 5.5
parent b737a0171e
commit d907815f19
7 changed files with 78 additions and 1 deletions
+4
View File
@@ -87,6 +87,10 @@ def get_data(username: str):
t0 = time.monotonic()
try:
data = github.fetch_github_data(username, token=config.GITHUB_PAT)
except github.GitHubTransientError as e:
analytics.record_fetch(username, 503, int((time.monotonic() - t0) * 1000))
log.warning("github fetch rate-limited for %s: %s", username, e)
return jsonify({"error": "github_rate_limited"}), 503
except Exception:
analytics.record_fetch(username, 502, int((time.monotonic() - t0) * 1000))
log.exception("github fetch failed for %s", username)