mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +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
|
- collaborative - optional is the playlist collaborative
|
||||||
'''
|
'''
|
||||||
data = {}
|
data = {}
|
||||||
if name is not None:
|
if isinstance(name, basestring):
|
||||||
data['name'] = name
|
data['name'] = name
|
||||||
if isinstance(public, bool):
|
if isinstance(public, bool):
|
||||||
data['public'] = public
|
data['public'] = public
|
||||||
|
Loading…
Reference in New Issue
Block a user