summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ogcp/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 1621455..b326a8c 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -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')