summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-09-14 10:54:01 +0200
committerRoberto Hueso Gómez <rhueso@soleta.eu>2020-09-14 10:54:01 +0200
commit19be0f87de1b0ab064e3f058c45313cbe12428a8 (patch)
tree1ebea53fd0d26b5e8fc6fb9c57729a1e3cbd312a /ogcp/views.py
parentb7e980f9466959a583dbefca4dc067d82c05fe8c (diff)
Fix internal server error code
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py4
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():