Closed stsmith313 closed 1 year ago
Try the name D-backs
Try the name
D-backs
Yea I've tried every iteration you can think of and same issue. Done the same thing with Arizona as well.
The error you originally posted is coming from this file, which uses D-backs
. Does the error change if you use that name?
Looks like the error does change.
ERROR (10:05:45): Untrapped error in main!
Traceback (most recent call last):
File "/home/sam/mlb-led-scoreboard/main.py", line 168, in
What version of the scoreboard is this running? To output:
sudo python3 version.py
It looks like the headline keys mismatch:
What version of the scoreboard is this running? To output:
sudo python3 version.py
v6.3.1
I did see the keys mismatched but didn't know if that was intentional or not based on their API
@stsmith313 this should be fixed on the dev branch, if you want to try it out we can release it
git checkout dev
Then run it, if it works for you we can go ahead and cut the actual release
@ty-porter Yes! That worked. Thanks so much for everyone's help!
This issue is a
Hardware Configuration
Software Configuration
Expected behavior
Dbacks should be shown as preferred team.
Actual behavior
There is a keyerror that happens when trying to run the program instead. If I am using the wrong team name I apologize. I was unable to find the correct team name documented anywhere.
Additional Information
ERROR (09:15:09): Untrapped error in main! Traceback (most recent call last): File "/home/sam/mlb-led-scoreboard/main.py", line 168, in
main(matrix, config)
File "/home/sam/mlb-led-scoreboard/main.py", line 70, in main
data = Data(config)
File "/home/sam/mlb-led-scoreboard/data/init.py", line 25, in init
self.current_game: Game = self.schedule.get_preferred_game()
File "/home/sam/mlb-led-scoreboard/data/schedule.py", line 93, in get_preferred_game
team_index = self._game_index_for_preferred_team()
File "/home/sam/mlb-led-scoreboard/data/schedule.py", line 131, in _game_index_for_preferred_team
team_name = data.teams.TEAM_FULL[self.config.preferred_teams[0]]
KeyError: 'Dbacks'