derek-adair / nflgame

A working snapshot of nflgame (for historic purposes). This project is no longer active.
http://nflgame.derekadair.com
The Unlicense
332 stars 100 forks source link

UnboundLocalError: local variable 'stored_week' referenced before assignment #128

Closed morelandjs closed 4 years ago

morelandjs commented 4 years ago

Head of dev is crashing with this error:

~/nflgame/nflgame/sched.py in check_missing_weeks(sched, year, phase)
     35         stored_weeks.add(stored_week)
     36
---> 37     if stored_week in stored_weeks: stored_weeks.remove(stored_week)
     38
     39     return missing_weeks

UnboundLocalError: local variable 'stored_week' referenced before assignment
derek-adair commented 4 years ago

Woops i possibly screwed up a pull from master

derek-adair commented 4 years ago

Nope! just pure incompetence. Really need tests, dont we? D:

morelandjs commented 4 years ago

Thanks!

derek-adair commented 4 years ago

This is actually, unfortunately #130 - I will be making adjustments for this project to function without the api.