custom 500: only catch 500 not every exception
if we catch Exception then flask's error handler never runs and neither does raven's
This commit is contained in:
parent
7599565344
commit
7b4c8a8fe1
|
@ -60,7 +60,7 @@ def not_found(e):
|
||||||
|
|
||||||
|
|
||||||
@app.errorhandler(500)
|
@app.errorhandler(500)
|
||||||
@app.errorhandler(Exception)
|
#@app.errorhandler(Exception)
|
||||||
def internal_server_error(e):
|
def internal_server_error(e):
|
||||||
return (render_template('500.html', e=e), 500)
|
return (render_template('500.html', e=e), 500)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue