Fix "NowPlaying: KeyError: None" (#784)

This commit is contained in:
Simon Struck 2021-12-06 17:11:50 +01:00 committed by GitHub
parent fadd3167fd
commit 48775e4b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')