mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-07-30 14:00:18 +00:00
Addeded JSON error handling
This commit is contained in:
@@ -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