From 52619e71d282a8952dc9b62a8338d1a32a9b2a62 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 19 Apr 2015 13:08:28 +0200 Subject: Restoring HTML 500 error handler. --- pyaggr3g470r/views/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py index 577d2bcf..3429e6bb 100644 --- a/pyaggr3g470r/views/views.py +++ b/pyaggr3g470r/views/views.py @@ -114,9 +114,9 @@ def authentication_failed(e): def page_not_found(e): return render_template('errors/404.html'), 404 -#@app.errorhandler(500) -#def internal_server_error(e): - #return render_template('errors/500.html'), 500 +@app.errorhandler(500) +def internal_server_error(e): + return render_template('errors/500.html'), 500 def redirect_url(default='home'): -- cgit