From ccf348e5c540d4c52b3161ca2523d6bf0b9e5d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 13 Jun 2018 17:18:34 +0200 Subject: [PATCH] Fix webservice 404, 401 handlers --- solvable/src/webservice/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solvable/src/webservice/server.py b/solvable/src/webservice/server.py index 6f4aab7..afeb601 100644 --- a/solvable/src/webservice/server.py +++ b/solvable/src/webservice/server.py @@ -94,7 +94,7 @@ def logout(): @app.errorhandler(404) @app.route('/error') def error(err): # pylint: disable=unused-argument - return render_template('error.html', error=error), error.code + return render_template('error.html', error=err), err.code # 500 needs a separate handler, as Flask would print