From 803e33836669d7502957b3b88d36743f42dfce33 Mon Sep 17 00:00:00 2001 From: Paul Lamere Date: Fri, 27 Jun 2014 16:18:17 -0400 Subject: [PATCH] Addeded JSON error handling --- spotipy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotipy/__init__.py b/spotipy/__init__.py index cc97826..65c6102 100644 --- a/spotipy/__init__.py +++ b/spotipy/__init__.py @@ -102,7 +102,7 @@ class Spotify(object): print('RESP', results) print() return results - except json.decoder.JSONDecodeError: + except ValueError: return None def next(self, result):