diff options
author | MS <ms@taler.net> | 2021-05-12 10:50:36 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2021-05-12 10:50:36 +0200 |
commit | d31b17b9c923af099dd103e2a2e12dafffb8dcd5 (patch) | |
tree | bdb1b34e595374ee6d8044b3d9dcfb338157640c /talermerchantdemos/survey | |
parent | 7541de2109fc1cc5189cbb24bfc26b0cc83bd7c0 (diff) | |
download | taler-merchant-demos-d31b17b9c923af099dd103e2a2e12dafffb8dcd5.tar.gz taler-merchant-demos-d31b17b9c923af099dd103e2a2e12dafffb8dcd5.tar.bz2 taler-merchant-demos-d31b17b9c923af099dd103e2a2e12dafffb8dcd5.zip |
avoid throwing stacks in UI
Diffstat (limited to 'talermerchantdemos/survey')
-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) |