Closed declension closed 6 years ago
Same KeyError when the per settings defined DEFAULT_PLAYER is not found but another player is active.
`Refreshing server and player statuses... Found 1 player(s): ['another_player_name'] default_playerid': KeyError Traceback (most recent call last): File "/var/task/handler.py", line 37, in lambda_handler raise e ... File "/var/task/squeezealexa/squeezebox/server.py", line 66, in init print_d("Default player is now %s" % (self.players[pid],)) KeyError: 'default_playerid'
Propose to change the issue title to: Getting details of current player raises KeyError when no players or player(s) different from DEFAULT_PLAYER is(are) found
Propose to change the issue title to: Getting details of current player raises KeyError when no players or player(s) different from DEFAULT_PLAYER is(are) found
Thanks. Actually I've tracked that separately now (#59), it's easier as they involve slightly different solutions.
Following on from #37.
Steps
Have no players set up Ask Squeezbox what's playing
Expected
An answer without error, or at least a notice that nothing is playing (perhaps because there are no players...)
Actual