diff --git a/headphones/lastfm.py b/headphones/lastfm.py index 8f906d5f..db3e1aec 100644 --- a/headphones/lastfm.py +++ b/headphones/lastfm.py @@ -149,7 +149,10 @@ def getTagTopArtists(tag, limit=50): logger.debug("Fetched %d artists from Last.FM", len(artists)) for artist in artists: - artist_mbid = artist["mbid"] + try: + artist_mbid = artist["mbid"] + except KeyError: + continue if not any(artist_mbid in x for x in results): artistlist.append(artist_mbid)