From d03b46100ce9c20f118f4565998ebd14f03b6a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20K=C3=BChne?= Date: Fri, 6 Oct 2023 15:59:21 +0000 Subject: [PATCH] Remove Information exposure. --- backend/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app.py b/backend/app.py index 195ba9f..2a201f4 100644 --- a/backend/app.py +++ b/backend/app.py @@ -336,8 +336,8 @@ def close_event(): database.delete_all_entries() helpers.reset_current_event_id(app) return Response('{"status": "OK"}', mimetype='text/json') - except Exception as e: - response = jsonify({"status": "FAIL", "exception": e}) + except Exception: + response = jsonify({"status": "FAIL", "message": "An error occured while closing the event."}) response.status_code = 400 return response