mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-08-31 02:19:04 +00:00
Fixes error when scope is not set
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user