Closed stsmith313 closed 1 year ago
Nevermind I got it working.
How did you correct this, I am having the same issue.
How did you correct this, I am having the same issue.
Check the pull request I put in and update the code with it. That’s the code that is working for me right now.
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'