diff --git a/i3pystatus/now_playing.py b/i3pystatus/now_playing.py index ee0ec7c..b84b8af 100644 --- a/i3pystatus/now_playing.py +++ b/i3pystatus/now_playing.py @@ -194,6 +194,10 @@ https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html if hasattr(self, "data"): del self.data return + except KeyError: + if self.hide_no_player: + self.output = None + return def playpause(self): self.player_command('PlayPause')