From f6dd8b0a4d902b8dbcfe2c13338427ef215d52a6 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 24 Nov 2014 12:20:54 -0500 Subject: [PATCH] Fix NPE --- auth/scopes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth/scopes.py b/auth/scopes.py index 932541969..c71e5faa7 100644 --- a/auth/scopes.py +++ b/auth/scopes.py @@ -75,6 +75,9 @@ IMPLIED_SCOPES = { def scopes_from_scope_string(scopes): + if not scopes: + return {} + return {ALL_SCOPES.get(scope, None) for scope in scopes.split(',')}