From a22e99bf9b3c307d78842cd0620c660e32d970a3 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Thu, 14 Jul 2016 00:11:38 -0400 Subject: [PATCH] Re-enable custom flask error handler registration. --- realms/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/realms/__init__.py b/realms/__init__.py index ee4f6b2..84ea98e 100644 --- a/realms/__init__.py +++ b/realms/__init__.py @@ -180,10 +180,7 @@ def create_app(config=None): db.Model = declarative_base(metaclass=HookModelMeta, cls=HookMixin) - # TODO: This caused a crash with a more recent flask. Figure out what it does. - # for status_code in httplib.responses: - # if status_code >= 400: - # app.register_error_handler(status_code, error_handler) + app.register_error_handler(HTTPException, error_handler) @app.before_request def init_g():