Commits

Stefan Scherfke committed d1cb839

Fixed non-captured key-error with empty charts.

  • Participants
  • Parent commits ec48793

Comments (0)

Files changed (1)

File lastfm/views.py

             raise IOError('No artists found.')
         elif type(data) == dict:
             data = [data]
-    except (IOError, ValueError):
+    except (KeyError, IOError, ValueError):
         return HttpResponse(json.dumps([]), mimetype='application/json')
 
     items = []