spilchen / yahoo_fantasy_api

python bindings for the Yahoo! Fantasy API (https://yahoo-fantasy-api.readthedocs.io/)
MIT License
93 stars 34 forks source link

"position_type" KeyError #29

Closed rthawkins closed 2 years ago

rthawkins commented 2 years ago

As of today, calls like lg.to_team(x).roster() are failing due to the following error:

in roster(self, week, day) 93 plyr["position_type"] = next_item["position_type"] 94 else: ---> 95 plyr["position_type"] = next(it)["position_type"] 96 plyr["eligible_positions"] = _compact_eligible_pos(next(it)) 97 plyr["selected_position"] = _compact_selected_pos(next(it))

KeyError: 'position_type'

spilchen commented 2 years ago

I just fixed this in fc73c4169081. Also reflected in version 2.5.1 of the pypi package.