mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-06 14:52:50 +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
|
pass
|
||||||
|
|
||||||
def _is_scope_subset(self, needle_scope, haystack_scope):
|
def _is_scope_subset(self, needle_scope, haystack_scope):
|
||||||
needle_scope = set(needle_scope.split())
|
if needle_scope:
|
||||||
haystack_scope = set(haystack_scope.split())
|
needle_scope = set(needle_scope.split())
|
||||||
|
if haystack_scope:
|
||||||
|
haystack_scope = set(haystack_scope.split())
|
||||||
|
|
||||||
return needle_scope <= haystack_scope
|
return needle_scope <= haystack_scope
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user