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:
codl 2017-09-10 14:24:30 +02:00
parent 7599565344
commit 7b4c8a8fe1
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -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)