diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-09-14 10:54:01 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-09-14 10:54:01 +0200 |
commit | 19be0f87de1b0ab064e3f058c45313cbe12428a8 (patch) | |
tree | 1ebea53fd0d26b5e8fc6fb9c57729a1e3cbd312a | |
parent | b7e980f9466959a583dbefca4dc067d82c05fe8c (diff) |
Fix internal server error code
-rw-r--r-- | ogcp/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index b326a8c..4086a10 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -20,8 +20,8 @@ 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 +def server_error(error): + return render_template('error.html', message=error), 500 @app.route('/') def index(): |