mpd: fix decoding error in currentsong leading to exception

This commit is contained in:
enkore 2019-05-13 11:50:40 +02:00 committed by GitHub
parent 071f0ce6fb
commit 80a0583466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ cleartext to the server.)"),
if playback_state == "stop":
currentsong = {}
else:
currentsong = self._mpd_command(self.s, "currentsong")
currentsong = self._mpd_command(self.s, "currentsong") or {}
except Exception:
if self.hide_inactive:
self.output = {