From fd364ccca3005486fe343eae3a92ebd564628883 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 9 Dec 2016 14:52:49 -0500 Subject: [PATCH] Remove unneeded exception var --- endpoints/oauthlogin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/oauthlogin.py b/endpoints/oauthlogin.py index baa7c1cb2..17cb6da20 100644 --- a/endpoints/oauthlogin.py +++ b/endpoints/oauthlogin.py @@ -312,7 +312,7 @@ def dex_oauth_callback(): try: payload = decode_user_jwt(token, dex_login) - except InvalidTokenError as ite: + except InvalidTokenError: logger.exception('Exception when decoding returned JWT') return render_ologin_error( dex_login.public_title,