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

2017 week 1-8 is missing #343

Closed
mrr-phys opened this issue Nov 5, 2017 · 3 comments
Closed

2017 week 1-8 is missing #343

mrr-phys opened this issue Nov 5, 2017 · 3 comments

Comments

@mrr-phys
Copy link

mrr-phys commented Nov 5, 2017

Hi, I get this error:

TypeError Traceback (most recent call last)
in ()
----> 1 games = nfl.games(2017,week=3)
2 players = nfl.combine(games)

/Users/mrr/anaconda2/lib/python2.7/site-packages/nflgame/init.pyc in games(year, week, home, away, kind, started)
227 def games_gen(year, week=None, home=None, away=None,
228 kind='REG', started=False):
--> 229 """
230 games returns a generator of all games matching the given criteria. Each
231 game can then be queried for player statistics and information about

TypeError: 'NoneType' object is not iterable

@mrr-phys
Copy link
Author

mrr-phys commented Nov 5, 2017

The output after running the code below is 1:

import nflgame
games = nflgame.games(2017)
print len(games)

@mrr-phys mrr-phys closed this as completed Nov 5, 2017
@mrr-phys mrr-phys reopened this Nov 5, 2017
@mtdiedrich
Copy link

ochawkeye's solution in this thread solved the issue for me. Have a crack at it, if you haven't already.

@mrr-phys mrr-phys closed this as completed Nov 7, 2017
@mrr-phys
Copy link
Author

mrr-phys commented Nov 7, 2017

Thank you!

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

2 participants