Skip to content
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 Gsis_id = 2019122202 #317

Open
seanpdwyer7 opened this issue Dec 23, 2019 · 0 comments
Open

KeyError Gsis_id = 2019122202 #317

seanpdwyer7 opened this issue Dec 23, 2019 · 0 comments

Comments

@seanpdwyer7
Copy link

Any one else getting this error when running NFLdb-update. This is from the game that was flexed into the Saturday game from a Sunday Game. I've tried updating nflgame-update-schedule and that file is not working.

STARTING NFLDB UPDATE AT 2019-12-23 16:58:41.411406
Connecting to nfldb... done.
Setting timezone to UTC... done.
Locking write access to tables... done.
Updating season phase, year and week... done.
Adding schedule data for 1 games... done.
Bulk inserting data for 17 games...
Traceback (most recent call last):
File "/home/seandwyer/.local/bin/nfldb-update", line 39, in
nfldb.update.run(**vars(args))
File "/home/seandwyer/.local/lib/python2.7/site-packages/nfldb/update.py", line 535, in run
doit()
File "/home/seandwyer/.local/lib/python2.7/site-packages/nfldb/update.py", line 525, in doit
update_games(db, batch_size=batch_size)
File "/home/seandwyer/.local/lib/python2.7/site-packages/nfldb/update.py", line 397, in update_games
bulk_insert_game_data(cursor, scheduled, batch_size=batch_size)
File "/home/seandwyer/.local/lib/python2.7/site-packages/nfldb/update.py", line 197, in bulk_insert_game_data
g = game_from_id(cursor, gsis_id)
File "/home/seandwyer/.local/lib/python2.7/site-packages/nfldb/update.py", line 54, in game_from_id
schedule = nflgame.sched.games[gsis_id]
KeyError: '2019122202'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant