From 655e1bf7e3f730a86cbfdb5ac5bef19850614260 Mon Sep 17 00:00:00 2001 From: Nathan Coleman Date: Mon, 26 Dec 2016 11:46:45 -0600 Subject: [PATCH] Add type check for name kwarg --- spotipy/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotipy/client.py b/spotipy/client.py index 6d0a86a..f990c80 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -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