From 8c94c9ecbf0d6393e15e6a17c9bdbe1ed970792e Mon Sep 17 00:00:00 2001 From: Ade Date: Fri, 21 Aug 2015 19:23:56 +1200 Subject: [PATCH] last.fm fix failing if mbid not found --- headphones/lastfm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/lastfm.py b/headphones/lastfm.py index 85dcc817..93534693 100644 --- a/headphones/lastfm.py +++ b/headphones/lastfm.py @@ -79,7 +79,7 @@ def getSimilar(): try: artist_mbid = artist["mbid"] artist_name = artist["name"] - except TypeError: + except KeyError: continue if not any(artist_mbid in x for x in results):