Re-enable custom flask error handler registration.

This commit is contained in:
Chase Sterling 2016-07-14 00:11:38 -04:00
父節點 f7bb21dd2b
當前提交 a22e99bf9b
共有 1 個檔案被更改,包括 1 行新增4 行删除

查看文件

@ -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():