1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 20:55:10 +01:00

Make 404 page theme aware (falls back to default)

This commit is contained in:
2017-07-31 16:33:07 +02:00
parent 88a9806d44
commit f309d4acf2

View File

@@ -396,7 +396,8 @@ def make_external(url):
@app.errorhandler(404)
def page_not_found(e):
return render_template('404.html', error=e), 404
theme = themes[DEFAULT_THEME]
return render_template('404.html', error=e, theme=theme), 404
@app.route('/')