From 07d1a2ed12aa034ac4cc93be3beb2d93a08cd7e7 Mon Sep 17 00:00:00 2001 From: KIM JUNG BIN Date: Thu, 3 Mar 2022 13:19:41 +0900 Subject: [PATCH] Add exception handling --- Server/app/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/app/__init__.py b/Server/app/__init__.py index e5203dc..e60a562 100644 --- a/Server/app/__init__.py +++ b/Server/app/__init__.py @@ -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):