make 404 page 404 properly
This commit is contained in:
parent
e9a64abced
commit
9b39584257
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ def create_app():
|
||||||
@app.errorhandler(404)
|
@app.errorhandler(404)
|
||||||
def four_oh_four(e):
|
def four_oh_four(e):
|
||||||
theme = request.cookies.get("theme") or "dark"
|
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):
|
def load_page(url):
|
||||||
if url.endswith(".html"):
|
if url.endswith(".html"):
|
||||||
|
|
Loading…
Reference in a new issue