From 9b395842579287a755dbf44df43e7955735c27ef Mon Sep 17 00:00:00 2001 From: TriMill Date: Mon, 31 Oct 2022 12:45:34 -0400 Subject: [PATCH] make 404 page 404 properly --- flaskr/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaskr/__init__.py b/flaskr/__init__.py index f060ca2..e810c25 100644 --- a/flaskr/__init__.py +++ b/flaskr/__init__.py @@ -99,7 +99,7 @@ def create_app(): @app.errorhandler(404) def four_oh_four(e): theme = request.cookies.get("theme") or "dark" - return render_template("404.html", data=data, theme=theme) + return render_template("404.html", data=data, theme=theme), 404 def load_page(url): if url.endswith(".html"):