From 5fbd775b9a99212e1fb833300c23f29b51873476 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 17:02:26 +0800 Subject: [PATCH] fix: hide traceback of notify --- module/notify/notify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/notify/notify.py b/module/notify/notify.py index 9f66778..bb93837 100644 --- a/module/notify/notify.py +++ b/module/notify/notify.py @@ -65,10 +65,11 @@ def handle_notify(_config: str, **kwargs) -> bool: f"Return message:{return_data['wording']}") return False except OnePushException: - logger.exception("Push notify failed") + logger.error("Push notify failed") return False except Exception as e: - logger.exception(e) + # don't show any exceptions because exceptions contain variable traceback + logger.error(e) return False logger.info("Push notify success")