Unable to Pull Basketball League Data for 2018 #416
-
I'm unable to pull data specifically for 2018 for my private league. I get a "KeyError: '46'" which appears to stem from the _fetch_roster method. Error is below: `--------------------------------------------------------------------------- c:\users\jaket\appdata\local\programs\python\python39\lib\site-packages\espn_api\basketball\league.py in init(self, league_id, year, espn_s2, swid, fetch_league, debug) c:\users\jaket\appdata\local\programs\python\python39\lib\site-packages\espn_api\basketball\league.py in fetch_league(self) c:\users\jaket\appdata\local\programs\python\python39\lib\site-packages\espn_api\basketball\league.py in _fetch_teams(self, data) c:\users\jaket\appdata\local\programs\python\python39\lib\site-packages\espn_api\base_league.py in _fetch_teams(self, data, TeamClass, pro_schedule) c:\users\jaket\appdata\local\programs\python\python39\lib\site-packages\espn_api\basketball\team.py in init(self, data, member, roster, schedule, year, **kwargs) c:\users\jaket\appdata\local\programs\python\python39\lib\site-packages\espn_api\basketball\team.py in _fetch_roster(self, data, year, pro_schedule) c:\users\jaket\appdata\local\programs\python\python39\lib\site-packages\espn_api\basketball\player.py in init(self, data, year, pro_team_schedule) c:\users\jaket\appdata\local\programs\python\python39\lib\site-packages\espn_api\basketball\player.py in (.0) KeyError: '46'` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for reporting this, I have a PR up now to handle unknown stat ids! |
Beta Was this translation helpful? Give feedback.
Thanks for reporting this, I have a PR up now to handle unknown stat ids!