mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-01 12:26:13 +00:00
Woops, maybe it was broken afterall
This commit is contained in:
parent
f32aec6404
commit
c46f16131b
|
@ -66,7 +66,13 @@ def create_app(test_config=None):
|
||||||
assets.register('js_all', js_scripts)
|
assets.register('js_all', js_scripts)
|
||||||
|
|
||||||
# Error handlers
|
# 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):
|
def error_page(err):
|
||||||
error = err.code
|
error = err.code
|
||||||
msg = err.description
|
msg = err.description
|
||||||
|
|
Loading…
Reference in a new issue