Add 500 default error handler

This handles HTTP 500 internal server errors.
multi-ogserver
Roberto Hueso Gómez 2020-09-04 13:21:36 +02:00
parent 31d2808a43
commit b7e980f946
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ def load_config():
def page_not_found(error):
return render_template('error.html', message=error), 404
@app.errorhandler(500)
def page_not_found(error):
return render_template('error.html', message=error), 404
@app.route('/')
def index():
return render_template('base.html')