1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-12-05 02:21:31 +00:00

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

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