Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vimalloc-mavenlink committed Sep 27, 2021
1 parent 2b6f69d commit 6d726be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flask_jwt_extended/internal_utils.py
Expand Up @@ -12,7 +12,7 @@ def get_jwt_manager():
raise RuntimeError(
"You must initialize a JWTManager with this flask "
"application before using this method"
)
) from None


def has_user_lookup():
Expand Down
4 changes: 3 additions & 1 deletion flask_jwt_extended/view_decorators.py
Expand Up @@ -248,7 +248,9 @@ def _decode_jwt_from_json(refresh):
if not encoded_token:
raise BadRequest()
except BadRequest:
raise NoAuthorizationError('Missing "{}" key in json data.'.format(token_key))
raise NoAuthorizationError(
'Missing "{}" key in json data.'.format(token_key)
) from None

return encoded_token, None

Expand Down

0 comments on commit 6d726be

Please sign in to comment.