Re-enable custom flask error handler registration.
This commit is contained in:
parent
f7bb21dd2b
commit
a22e99bf9b
|
@ -180,10 +180,7 @@ def create_app(config=None):
|
||||||
|
|
||||||
db.Model = declarative_base(metaclass=HookModelMeta, cls=HookMixin)
|
db.Model = declarative_base(metaclass=HookModelMeta, cls=HookMixin)
|
||||||
|
|
||||||
# TODO: This caused a crash with a more recent flask. Figure out what it does.
|
app.register_error_handler(HTTPException, error_handler)
|
||||||
# for status_code in httplib.responses:
|
|
||||||
# if status_code >= 400:
|
|
||||||
# app.register_error_handler(status_code, error_handler)
|
|
||||||
|
|
||||||
@app.before_request
|
@app.before_request
|
||||||
def init_g():
|
def init_g():
|
||||||
|
|
Loading…
Reference in a new issue