Code d'erreur apprioprié

This commit is contained in:
theo@manjaro 2024-02-12 19:20:27 +01:00
parent 912dd9b5ca
commit 38ec94eb5d
1 changed files with 3 additions and 1 deletions

4
app.py
View File

@ -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