-
-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Description
Could we update the migration guide to include the exception name change:
https://github.com/vimalloc/flask-jwt-extended/blob/master/docs/v4_upgrade_guide.rst
Version 3.x.x uses UserLoadError while version 4.x.x uses UserLookupError. This is a breaking change.
Version 3.x.x uses UserLoadError
flask-jwt-extended/flask_jwt_extended/exceptions.py
Lines 59 to 64 in 12ead38
| class UserLoadError(JWTExtendedException): | |
| """ | |
| Error raised when a user_loader callback function returns None, indicating | |
| that it cannot or will not load a user for the given identity. | |
| """ | |
| pass |
Version 4.x.x uses UserLookupError
flask-jwt-extended/flask_jwt_extended/exceptions.py
Lines 73 to 78 in d13dd8d
| class UserLookupError(JWTExtendedException): | |
| """ | |
| Error raised when a user_lookup callback function returns None, indicating | |
| that it cannot or will not load a user for the given identity. | |
| """ | |
Suggestion:
API Changes
~~~~~~~~~~~
- Removed ``UserLoadError`` from ``flask_jwt_extended.exceptions`` . Use ``UserLookupError`` instead.
Metadata
Metadata
Assignees
Labels
No labels