Add type check for name kwarg

This commit is contained in:
Nathan Coleman 2016-12-26 11:46:45 -06:00
parent b8ae99a6e6
commit 655e1bf7e3

View File

@ -395,7 +395,7 @@ class Spotify(object):
- collaborative - optional is the playlist collaborative
'''
data = {}
if name is not None:
if isinstance(name, basestring):
data['name'] = name
if isinstance(public, bool):
data['public'] = public