From 38ec94eb5d6d9b5c7e7e9485d1db84742956a19c Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Mon, 12 Feb 2024 19:20:27 +0100 Subject: [PATCH] =?UTF-8?q?Code=20d'erreur=20appriopri=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 0910991..f4a931a 100644 --- a/app.py +++ b/app.py @@ -492,4 +492,6 @@ def error(e): flask.render_template """ - return render_template("error.html", error="Page non trouvée !", **GLOBAL_CONTEXT) \ No newline at end of file + template = render_template("error.html", error="Page non trouvée !", **GLOBAL_CONTEXT) + response = make_response(template, 404) + return response