X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fplugins%2Fcore%2Fhistory.py;fp=sima%2Fplugins%2Fcore%2Fhistory.py;h=ae98a3ff5490f204c72626f61bec7e114a533b3f;hb=e5ac6da78e3433a1b94676f6523e358d6089f263;hp=b79105333a54dffe12841a9a19f0dc72a3fbabdd;hpb=f0912ba70260d43fc4885f6d75c2e83b6fb5a8d1;p=mpd-sima.git diff --git a/sima/plugins/core/history.py b/sima/plugins/core/history.py index b791053..ae98a3f 100644 --- a/sima/plugins/core/history.py +++ b/sima/plugins/core/history.py @@ -42,7 +42,9 @@ class History(Plugin): def callback_next_song(self): current = self.player.current - self.log.debug('add history: "{}"'.format(current)) + self.log.debug('add history: "%s"', current) + if not current: + self.log.warning('Cannot add "%s" to history (empty or missing file)', current) self.sdb.add_history(current)