From ffb4798d04f9dc7d5fd81896ab40021ebcbbb5a8 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Thu, 16 Aug 2012 23:09:27 +0530 Subject: [PATCH] Fix for last.fm query hanging when updating artist info --- headphones/lastfm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: