diff --git a/headphones/lastfm.py b/headphones/lastfm.py index a55b6c8f..ce77948b 100644 --- a/headphones/lastfm.py +++ b/headphones/lastfm.py @@ -42,7 +42,7 @@ def getSimilar(): time.sleep(1) continue - if len(data) < 200: + if not data or len(data) < 200: continue try: