mmelko / ad4vol

16x2 Screen with char - client for Volumio distribution
Apache License 2.0
1 stars 0 forks source link

app crashes when no song is playing #9

Closed mmelko closed 8 years ago

mmelko commented 8 years ago
Traceback (most recent call last):
  File "main.py", line 13, in <module>
    client.start()
  File "/home/volumio/adafruit-lcd/ad4vol/menu/abstract.py", line 47, in start
    self.main_screen()
  File "/home/volumio/adafruit-lcd/ad4vol/menu/main.py", line 15, in main_screen
    self.screen.display_string(self.client.get_current_song() + "\n" + self.client.get_current_time())
  File "/home/volumio/adafruit-lcd/ad4vol/client/mpdclient.py", line 29, in get_current_time
    temp = self.client.status()['time'].split(":")[0]
KeyError: 'time'
mmelko commented 8 years ago

Fixed in ad4vol-poc branch