mikemountain / fantasy-football-scoreboard

Display the score of your fantasy football team on a Raspberry Pi driven RGB LED matrix for maximum ease of disappointment
GNU General Public License v3.0
61 stars 9 forks source link

Issue with trying to run program with ESPN & Sleeper #42

Closed stsmith313 closed 1 year ago

stsmith313 commented 1 year ago
Capture

When I'm trying to run the program I am getting an error:

Traceback (most recent call last): File "/home/sam/fantasy-football-scoreboard/main.py", line 38, in data = Data(config) File "/home/sam/fantasy-football-scoreboard/data/data.py", line 23, in init self.api = self.choose_api() File "/home/sam/fantasy-football-scoreboard/data/data.py", line 38, in choose_api return espn.ESPNFantasyInfo(self.config.espn_league_id, self.config.espn_team_id, self.config.espn_swid, self.config.espn_s2, self.week, self.config.season) File "/home/sam/fantasy-football-scoreboard/data/espn_api_parser.py", line 19, in init self.teams_info = self.get_teams() File "/home/sam/fantasy-football-scoreboard/data/espn_api_parser.py", line 114, in get_teams owner = user['primaryOwner'] KeyError: 'primaryOwner'

stsmith313 commented 1 year ago

Nevermind I got it working.

Mdawson25 commented 1 year ago

How did you correct this, I am having the same issue.

code

stsmith313 commented 1 year ago

How did you correct this, I am having the same issue.

code

Check the pull request I put in and update the code with it. That’s the code that is working for me right now.