mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-08 15:42:48 +00:00
Fixes error when scope is not set
This commit is contained in:
parent
f638b0c59b
commit
4f15a6f07e
@ -149,7 +149,9 @@ class SpotifyOAuth(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def _is_scope_subset(self, needle_scope, haystack_scope):
|
def _is_scope_subset(self, needle_scope, haystack_scope):
|
||||||
|
if needle_scope:
|
||||||
needle_scope = set(needle_scope.split())
|
needle_scope = set(needle_scope.split())
|
||||||
|
if haystack_scope:
|
||||||
haystack_scope = set(haystack_scope.split())
|
haystack_scope = set(haystack_scope.split())
|
||||||
|
|
||||||
return needle_scope <= haystack_scope
|
return needle_scope <= haystack_scope
|
||||||
|
Loading…
Reference in New Issue
Block a user