aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/lastfm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lastfm.py b/modules/lastfm.py
index 756f1f49..8bf7ebef 100644
--- a/modules/lastfm.py
+++ b/modules/lastfm.py
@@ -75,7 +75,7 @@ class Module(ModuleManager.BaseModule):
track = info_page.data.get("track", {})
tags_str = ""
- if "toptags" in track:
+ if "toptags" in track and track["toptags"]["tag"]:
tags = [t["name"] for t in track["toptags"]["tag"]]
tags_str = " [%s]" % ", ".join(tags)