From dcd8157207e58e5a69455404f39450d5795fa4c6 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 28 Nov 2016 18:55:51 -0500 Subject: [PATCH] Fix JWT exception in Dex code --- endpoints/oauthlogin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/oauthlogin.py b/endpoints/oauthlogin.py index 5ededb2dd..1164d5df5 100644 --- a/endpoints/oauthlogin.py +++ b/endpoints/oauthlogin.py @@ -325,7 +325,7 @@ def dex_oauth_attach(): try: payload = decode_user_jwt(token, dex_login) - except jwt.InvalidTokenError: + except InvalidTokenError: logger.exception('Exception when decoding returned JWT') return render_ologin_error( dex_login.public_title,