make 404 page 404 properly

This commit is contained in:
TriMill 2022-10-31 12:45:34 -04:00
parent e9a64abced
commit 9b39584257
1 changed files with 1 additions and 1 deletions

View File

@ -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"):