MLB-LED-Scoreboard / mlb-led-scoreboard

An LED scoreboard for Major League Baseball :baseball:
GNU General Public License v3.0
599 stars 105 forks source link

Crash during rotation #362

Closed twfarley closed 2 years ago

twfarley commented 2 years ago
ERROR (12:42:26): Untrapped error in main!
Traceback (most recent call last):
  File "/home/pi/mlb-led-scoreboard/main.py", line 144, in <module>
    main(matrix, config)
  File "/home/pi/mlb-led-scoreboard/main.py", line 78, in main
    __refresh_games(render, data)
  File "/home/pi/mlb-led-scoreboard/main.py", line 115, in __refresh_games
    data.advance_to_next_game()
  File "/home/pi/mlb-led-scoreboard/data/__init__.py", line 75, in advance_to_next_game
    game = self.schedule.next_game()
  File "/home/pi/mlb-led-scoreboard/data/schedule.py", line 106, in next_game
    preferred_game = Game.from_ID(self._games[game_index]["game_id"], self.date)
IndexError: list index out of range