import notification_store def add_notification(target_account: str, notif_data: dict): try: notification_store.append_notification(target_account, notif_data) except Exception as error: # 通知属于派生操作,故障不影响已经完成的业务;不打印账号/正文。 print(f"通知写入失败: error_type={type(error).__name__}")