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:
parent
5180edbaf6
commit
ccf348e5c5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user