mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-14 02:57:27 +00:00
Merge pull request #158 from josduj/master
Fixes error when scope is not set
This commit is contained in:
commit
dc996b363f
@ -153,8 +153,10 @@ class SpotifyOAuth(object):
|
||||
pass
|
||||
|
||||
def _is_scope_subset(self, needle_scope, haystack_scope):
|
||||
needle_scope = set(needle_scope.split())
|
||||
haystack_scope = set(haystack_scope.split())
|
||||
if needle_scope:
|
||||
needle_scope = set(needle_scope.split())
|
||||
if haystack_scope:
|
||||
haystack_scope = set(haystack_scope.split())
|
||||
|
||||
return needle_scope <= haystack_scope
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user