mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 09:10:45 +00:00
Addeded JSON error handling
This commit is contained in:
1 parent
a30a6557d1
commit
803e338366
1 file changed
+1
-1
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user