Browse Source

Re-enable custom flask error handler registration.

master
Chase Sterling 7 years ago
parent
commit
a22e99bf9b
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      realms/__init__.py

+ 1
- 4
realms/__init__.py View File

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


Loading…
Cancel
Save