From 80a0583466927dfaec007ad5f151d981dafce9ea Mon Sep 17 00:00:00 2001 From: enkore Date: Mon, 13 May 2019 11:50:40 +0200 Subject: [PATCH] mpd: fix decoding error in currentsong leading to exception --- i3pystatus/mpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/mpd.py b/i3pystatus/mpd.py index 219b145..2ade8a5 100644 --- a/i3pystatus/mpd.py +++ b/i3pystatus/mpd.py @@ -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 = {