diff --git a/server.py b/server.py index 1e471dceb26f1041427af4d1d341d7422db7a25f..7386eef5aa8cc2a158996e49d0769d09bb7caa86 100644 --- a/server.py +++ b/server.py @@ -236,7 +236,7 @@ def handle_errors(endpoint, text, code, *errors, **epargs): @app.errorhandler(404) @app.route('/invalidpath') -def handle_not_found(e): +def handle_not_found(e=None): return render_endpoint('index', 'Diese Seite existiert nicht!'), 404 @app.errorhandler(500)