mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-14 02:57:27 +00:00
Fixes error when scope is not set
This commit is contained in:
parent
f638b0c59b
commit
4f15a6f07e
@ -149,8 +149,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