Raise unhandled exception in debug mode
This commit is contained in:
parent
38610d0e0a
commit
9be83a83d3
@ -1,4 +1,4 @@
|
||||
from flask import render_template
|
||||
from flask import render_template, current_app
|
||||
import werkzeug.exceptions as werkzeug_exceptions
|
||||
|
||||
import atst.domain.exceptions as exceptions
|
||||
@ -27,6 +27,8 @@ def make_error_pages(app):
|
||||
# pylint: disable=unused-variable
|
||||
def exception(e):
|
||||
log_error(e)
|
||||
if current_app.debug:
|
||||
raise e
|
||||
return (
|
||||
render_template("error.html", message="An Unexpected Error Occurred"),
|
||||
500,
|
||||
|
Loading…
x
Reference in New Issue
Block a user