forked from platypush/platypush
Don't break if no data is received from the Snapcast server
This commit is contained in:
parent
affaee6ab7
commit
077bb0686b
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class MusicSnapcastPlugin(Plugin):
|
|||
}
|
||||
|
||||
self._send(sock, request)
|
||||
return self._recv(sock).get('server', {})
|
||||
return (self._recv(sock) or {}).get('server', {})
|
||||
|
||||
@action
|
||||
def status(self, host=None, port=None, client=None, group=None):
|
||||
|
|
Loading…
Reference in a new issue