Commits

Stefan Scherfke committed d8aeb0f

Replaced RuntimeError by IOError if last.fm servers are down.

Comments (0)

Files changed (1)

         data = json.loads(urllib.urlopen(URL + params).read())
 
         if 'error' in data:
-            raise RuntimeError(str(data))
+            raise IOError(str(data))
 
         data = chart.get_data(data)
         if not data: