summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdaemon.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon.py b/daemon.py
index 9d35f33..769e6d5 100755
--- a/daemon.py
+++ b/daemon.py
@@ -49,7 +49,11 @@ class Daemon:
incoming = self.client.currentsong()
- self.line = incoming["artist"] + " - " + incoming["title"]
+ try:
+ self.line = incoming["artist"] + " - " + incoming["title"]
+ except KeyError:
+ self.line = " -- NO INFO --"
+
if self.line != old_line:
changed = True