You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The stats command fails to retrieve player stats when running against a NBA fantasy league
To Reproduce
Steps to reproduce the behavior:
Install and configure harambot with a yahoo NBA fantasy leauge
Add harambot to your discord server
run $stats Lebron James
See logs
2022-10-11T04:51:53.679349+00:00 app[worker.1]: Error while fetching player details for player: Lebron James in league 15944
2022-10-11T04:51:53.679371+00:00 app[worker.1]: Traceback (most recent call last):
2022-10-11T04:51:53.679371+00:00 app[worker.1]: File "/app/harambot/yahoo_api.py", line 82, in get_player_details
2022-10-11T04:51:53.679372+00:00 app[worker.1]: embed.add_field(name="Total Points", value=player['player_points']['total'])
2022-10-11T04:51:53.679372+00:00 app[worker.1]: KeyError: 'player_points'
Expected behavior
Player stat card returned
The text was updated successfully, but these errors were encountered:
Describe the bug
The stats command fails to retrieve player stats when running against a NBA fantasy league
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Player stat card returned
The text was updated successfully, but these errors were encountered: