i3pystatus.scores.nba: Fix spurious log warning for games that haven't started
@@ -232,11 +232,12 @@ class NBA(ScoresBackend):
ret['quarter'] = ''
clock = game.get('gameClock', '')
+ ret['time_remaining'] = ''
+ if clock:
try:
mins, secs = re.match(r'^PT(\d+)M(\d+\.\d)0?S$', clock).groups()
except AttributeError:
- ret['time_remaining'] = ''
- self.logger.warning('Failed to parse gameClock value: {clock}')
+ self.logger.warning(f'Failed to parse gameClock value: {clock}')
else:
mins = mins.lstrip('0')
if mins:
