uncomment error handler

This commit is contained in:
Aaron Kimbre 2022-03-28 13:52:01 -05:00
parent 521a10756e
commit be80d7b2ab

View File

@ -75,14 +75,14 @@ def create_app():
if cdclient is not None: if cdclient is not None:
cdclient.close() cdclient.close()
# @app.errorhandler(Exception) @app.errorhandler(Exception)
# def handle_exception(e): def handle_exception(e):
# app.logger.error(e) app.logger.error(e)
# # pass through HTTP errors # pass through HTTP errors
# if isinstance(e, HTTPException): if isinstance(e, HTTPException):
# return e return e
# # now you're handling non-HTTP exceptions only # now you're handling non-HTTP exceptions only
# return render_template("status_codes/500.html.j2", exception=e), 500 return render_template("status_codes/500.html.j2", exception=e), 500
# add the commands to flask cli # add the commands to flask cli
app.cli.add_command(init_db) app.cli.add_command(init_db)