Code d'erreur apprioprié
This commit is contained in:
parent
912dd9b5ca
commit
38ec94eb5d
4
app.py
4
app.py
@ -492,4 +492,6 @@ def error(e):
|
||||
flask.render_template
|
||||
|
||||
"""
|
||||
return render_template("error.html", error="Page non trouvée !", **GLOBAL_CONTEXT)
|
||||
template = render_template("error.html", error="Page non trouvée !", **GLOBAL_CONTEXT)
|
||||
response = make_response(template, 404)
|
||||
return response
|
||||
|
Loading…
Reference in New Issue
Block a user