last.fm import fix

Fixes #2753
This commit is contained in:
Ade
2017-08-24 20:48:15 +12:00
parent bdf55f8662
commit 4d575787cd

View File

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