fix: hide traceback of notify

This commit is contained in:
2026-07-06 22:40:53 +08:00
parent fe2998aea6
commit 5fbd775b9a
+3 -2
View File
@@ -65,10 +65,11 @@ def handle_notify(_config: str, **kwargs) -> bool:
f"Return message:{return_data['wording']}") f"Return message:{return_data['wording']}")
return False return False
except OnePushException: except OnePushException:
logger.exception("Push notify failed") logger.error("Push notify failed")
return False return False
except Exception as e: except Exception as e:
logger.exception(e) # don't show any exceptions because exceptions contain variable traceback
logger.error(e)
return False return False
logger.info("Push notify success") logger.info("Push notify success")