diff --git a/platypush/plugins/music/snapcast.py b/platypush/plugins/music/snapcast.py index b103020a1..9c227f4ab 100644 --- a/platypush/plugins/music/snapcast.py +++ b/platypush/plugins/music/snapcast.py @@ -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):