From 7b4c8a8fe198d553090c99ea058d364901ad75b1 Mon Sep 17 00:00:00 2001 From: codl Date: Sun, 10 Sep 2017 14:24:30 +0200 Subject: [PATCH] custom 500: only catch 500 not every exception if we catch Exception then flask's error handler never runs and neither does raven's --- routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes.py b/routes.py index 47ca317..cc457b2 100644 --- a/routes.py +++ b/routes.py @@ -60,7 +60,7 @@ def not_found(e): @app.errorhandler(500) -@app.errorhandler(Exception) +#@app.errorhandler(Exception) def internal_server_error(e): return (render_template('500.html', e=e), 500)