Skip to content

Commit

Permalink
Add exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
smoothbear committed Mar 3, 2022
1 parent 34eafa6 commit 07d1a2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Server/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def register_hook(flask_app: Flask):
from app.hook.exception_handler import http_exception_handler
flask_app.register_error_handler(JWTExtendedException, jwt_handle)
flask_app.register_error_handler(PyJWTError, jwt_handle)
flask_app.register_error_handler(exception.DMSException, http_exception_handler)


def register_blueprint(flask_app: Flask):
Expand Down

0 comments on commit 07d1a2e

Please sign in to comment.