aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-19 13:08:28 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-19 13:08:28 +0200
commit52619e71d282a8952dc9b62a8338d1a32a9b2a62 (patch)
treed5c93c76aa0e0e47923a095b1008f1687ead8842 /pyaggr3g470r/views
parentThe problem was the 'database_url' conf variable, which is required on Heroku... (diff)
downloadnewspipe-52619e71d282a8952dc9b62a8338d1a32a9b2a62.tar.gz
newspipe-52619e71d282a8952dc9b62a8338d1a32a9b2a62.tar.bz2
newspipe-52619e71d282a8952dc9b62a8338d1a32a9b2a62.zip
Restoring HTML 500 error handler.
Diffstat (limited to 'pyaggr3g470r/views')
-rw-r--r--pyaggr3g470r/views/views.py6
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'):
bgstack15