codl/autoplay

backtrace when nothing is being played and 'info' requested

Closed this issue · 0 comments

No track is playing(player stopped), user does 'autoplay info' command:

Traceback (most recent call last):
File "/usr/local/bin/autoplay", line 528, in
s = getServSock()
File "/usr/local/bin/autoplay", line 483, in getServSock
serve()
File "/usr/local/bin/autoplay", line 422, in serve
if sockAccept():
File "/usr/local/bin/autoplay", line 354, in sockAccept
else: c.send(pprintSong())
File "/usr/local/bin/autoplay", line 286, in pprintSong
WHERE file = ?""", (unicode(song['file'], enc),))
KeyError: 'file'