mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-04 23:17:48 +00:00
Add type check for name kwarg
This commit is contained in:
parent
b8ae99a6e6
commit
655e1bf7e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user