diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-19 13:08:28 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-19 13:08:28 +0200 |
commit | 52619e71d282a8952dc9b62a8338d1a32a9b2a62 (patch) | |
tree | d5c93c76aa0e0e47923a095b1008f1687ead8842 /pyaggr3g470r | |
parent | The problem was the 'database_url' conf variable, which is required on Heroku... (diff) | |
download | newspipe-52619e71d282a8952dc9b62a8338d1a32a9b2a62.tar.gz newspipe-52619e71d282a8952dc9b62a8338d1a32a9b2a62.tar.bz2 newspipe-52619e71d282a8952dc9b62a8338d1a32a9b2a62.zip |
Restoring HTML 500 error handler.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/views/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
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'): |