Commits

Stefan Scherfke committed d1cb839

Fixed non-captured key-error with empty charts.

Comments (0)

Files changed (1)

             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 = []