diff --git a/i3pystatus/scores/mlb.py b/i3pystatus/scores/mlb.py index ed60064e..0ad8aaf6 100644 --- a/i3pystatus/scores/mlb.py +++ b/i3pystatus/scores/mlb.py @@ -272,16 +272,19 @@ def process_game(self, game): ret[f'{team}_wins'] = self.get_nested( team_data, 'leagueRecord:wins', + callback=self.zero_fallback, default=0) ret[f'{team}_losses'] = self.get_nested( team_data, 'leagueRecord:losses', + callback=self.zero_fallback, default=0) ret[f'{team}_score'] = self.get_nested( linescore, f'teams:{team}:runs', - default='0') + callback=self.zero_fallback, + default=0) for key in ('delay', 'postponed', 'suspended'): ret[key] = ''