Skip to content
Snippets Groups Projects
Commit f42fceb8 authored by Julian Rother's avatar Julian Rother
Browse files

Added route for /invalidpath (closes #282)

parent f81b39fc
No related branches found
No related tags found
No related merge requests found
......@@ -235,6 +235,7 @@ def handle_errors(endpoint, text, code, *errors, **epargs):
return wrapper
@app.errorhandler(404)
@app.route('/invalidpath')
def handle_not_found(e):
return render_endpoint('index', 'Diese Seite existiert nicht!'), 404
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment