Fix JWT exception in Dex code

This commit is contained in:
Joseph Schorr 2016-11-28 18:55:51 -05:00
parent 0e24f6b40a
commit dcd8157207

View file

@ -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,