bump requirements, fix pyflake8 things, unpin botocore/awscli

This commit is contained in:
Leo Hemsted
2018-11-07 13:39:08 +00:00
parent d46caa184e
commit 267c4fc07b
11 changed files with 29 additions and 26 deletions

View File

@@ -113,7 +113,7 @@ def __get_token_issuer(auth_token):
client = get_token_issuer(auth_token)
except TokenIssuerError:
raise AuthError("Invalid token: iss field not provided", 403)
except TokenDecodeError as e:
except TokenDecodeError:
raise AuthError("Invalid token: signature, api token is not valid", 403)
return client
@@ -123,5 +123,5 @@ def handle_admin_key(auth_token, secret):
decode_jwt_token(auth_token, secret)
except TokenExpiredError:
raise AuthError("Invalid token: expired, check that your system clock is accurate", 403)
except TokenDecodeError as e:
except TokenDecodeError:
raise AuthError("Invalid token: signature, api token is not valid", 403)