Addeded JSON error handling

This commit is contained in:
Paul Lamere 2014-06-27 16:18:17 -04:00
parent a30a6557d1
commit 803e338366

View File

@ -102,7 +102,7 @@ class Spotify(object):
print('RESP', results) print('RESP', results)
print() print()
return results return results
except json.decoder.JSONDecodeError: except ValueError:
return None return None
def next(self, result): def next(self, result):