fix(baseball,odds): handle missing abbreviation in ESPN NCAA data#61
fix(baseball,odds): handle missing abbreviation in ESPN NCAA data#61ChuckBuilds wants to merge 1 commit intomainfrom
Conversation
Some NCAA baseball teams lack the 'abbreviation' field in ESPN API responses, causing KeyError crashes. Use .get() with fallback to team name truncated to 3 chars, matching the pattern already used in sports.py and data_manager.py. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 5 minutes and 47 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseded by #63 which includes this fix plus custom font support and other baseball/odds fixes. |
Summary
abbreviationfield, causingKeyErrorcrashes inbaseball.py:141andodds-ticker/manager.py:1152.get()with fallback toteam['name'][:3], matching the pattern already used insports.pyanddata_manager.pyTest plan
KeyError: 'abbreviation'KeyError: 'abbreviation'after deploy🤖 Generated with Claude Code