From 979f78f6775a2da0365f17a79eb65c43013df1bc Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Wed, 6 Aug 2014 18:51:04 -0400 Subject: [PATCH] Stop clobbering the scope variable. --- endpoints/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/web.py b/endpoints/web.py index fd6db64ca..19f9bb7f1 100644 --- a/endpoints/web.py +++ b/endpoints/web.py @@ -374,7 +374,7 @@ def request_authorization_code(): } # Show the authorization page. - has_dangerous_scopes = bool([scope for scope in scope_info if scope['dangerous']]) + has_dangerous_scopes = any([check_scope['dangerous'] for check_scope in scope_info]) return render_page_template('oauthorize.html', scopes=scope_info, has_dangerous_scopes=has_dangerous_scopes, application=oauth_app_view,