Fix webservice 404, 401 handlers

This commit is contained in:
Kristóf Tóth 2018-06-13 17:18:34 +02:00
parent 5180edbaf6
commit ccf348e5c5
1 changed files with 1 additions and 1 deletions

View File

@ -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