-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: 'linescore' #7
Labels
bug
Something isn't working
Comments
Thank you for pointing this out. I should not assume the linescore node is present in all cases, so I am checking in a fix for v0.0.8. I will check the 4/8/18 postponed game to see what's going on there too. |
The game on 4/8/18 is failing because there was no probable pitcher listed for the home team. See #6. |
toddrob99
added a commit
that referenced
this issue
May 8, 2019
|
Merged
Please update to v0.0.8 with |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got the following error when trying to get information on a game that was postponed:
line 148, in schedule 'current_inning': game['linescore'].get('currentInning',''), KeyError: 'linescore'
Here's the code I used to generate this error:
game_day = statsapi.schedule(team=136,start_date='05/11/2018')
Another postponed date that throws a different error is 04/08/2018.
The text was updated successfully, but these errors were encountered: