mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2024-12-29 10:56:10 +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)
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue