Fix NPE
This commit is contained in:
parent
c1c6f790bc
commit
f6dd8b0a4d
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ IMPLIED_SCOPES = {
|
||||||
|
|
||||||
|
|
||||||
def scopes_from_scope_string(scopes):
|
def scopes_from_scope_string(scopes):
|
||||||
|
if not scopes:
|
||||||
|
return {}
|
||||||
|
|
||||||
return {ALL_SCOPES.get(scope, None) for scope in scopes.split(',')}
|
return {ALL_SCOPES.get(scope, None) for scope in scopes.split(',')}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue