Woops, maybe it was broken afterall

This commit is contained in:
Michał 2023-03-25 13:05:16 +00:00
parent f32aec6404
commit c46f16131b

View file

@ -66,7 +66,13 @@ def create_app(test_config=None):
assets.register('js_all', js_scripts)
# Error handlers
@app.errorhandler(Exception)
@app.errorhandler(400)
@app.errorhandler(401)
@app.errorhandler(403)
@app.errorhandler(404)
@app.errorhandler(405)
@app.errorhandler(418)
@app.errorhandler(500)
def error_page(err):
error = err.code
msg = err.description