2017 week 1-8 is missing
mrr-phys opened this issue · 3 comments
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
The output after running the code below is 1:
import nflgame
games = nflgame.games(2017)
print len(games)
ochawkeye's solution in this thread solved the issue for me. Have a crack at it, if you haven't already.
Thank you!