diff options
Diffstat (limited to 'talermerchantdemos/survey/survey.py')
-rw-r--r-- | talermerchantdemos/survey/survey.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/talermerchantdemos/survey/survey.py b/talermerchantdemos/survey/survey.py index b5ea9c8..b25d6e5 100644 --- a/talermerchantdemos/survey/survey.py +++ b/talermerchantdemos/survey/survey.py @@ -95,12 +95,7 @@ app.context_processor(make_utility_processor("survey")) # (and execution stack!). @app.errorhandler(Exception) def internal_error(e): - return flask.render_template( - "survey-error.html.j2", - message=gettext("Internal error"), - stack=traceback.format_exc(), - ) - + return flask.render_template("survey-error.html.j2", message=str(e)) ## # Serve the /favicon.ico requests. @@ -184,4 +179,4 @@ def handler_backend_exception(e): json=e.backend_json, status_code=e.backend_status, ) - return flask.make_response(t, 500)
\ No newline at end of file + return flask.make_response(t, 500) |