From ade46d925a1b311da0ea09495da239094e5a5192 Mon Sep 17 00:00:00 2001 From: Chuck Doucette Date: Tue, 22 Sep 2026 21:04:07 -0400 Subject: [PATCH] hide the details of an exception (only use the execption name) to hide any potential secrets --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 1b85ddc..2c70d75 100644 --- a/main.py +++ b/main.py @@ -290,7 +290,7 @@ def notify_slack_of_exception(traceback_text): response = requests.post(webhook_url, json={"text": text}, timeout=10) response.raise_for_status() except Exception as slack_exc: - logger.error("Failed to post Slack alert: %s", slack_exc) + logger.error("Failed to post Slack alert: %s", type(slack_exc).name) if __name__ == "__main__":