From d31b17b9c923af099dd103e2a2e12dafffb8dcd5 Mon Sep 17 00:00:00 2001 From: MS Date: Wed, 12 May 2021 10:50:36 +0200 Subject: avoid throwing stacks in UI --- talermerchantdemos/survey/survey.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'talermerchantdemos/survey') 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) -- cgit v1.2.3