We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6f69d commit 6d726beCopy full SHA for 6d726be
flask_jwt_extended/internal_utils.py
@@ -12,7 +12,7 @@ def get_jwt_manager():
12
raise RuntimeError(
13
"You must initialize a JWTManager with this flask "
14
"application before using this method"
15
- )
+ ) from None
16
17
18
def has_user_lookup():
flask_jwt_extended/view_decorators.py
@@ -248,7 +248,9 @@ def _decode_jwt_from_json(refresh):
248
if not encoded_token:
249
raise BadRequest()
250
except BadRequest:
251
- raise NoAuthorizationError('Missing "{}" key in json data.'.format(token_key))
+ raise NoAuthorizationError(
252
+ 'Missing "{}" key in json data.'.format(token_key)
253
254
255
return encoded_token, None
256
0 commit comments