diff --git a/yuthon_wechat/wizard/wecom_api_sync_wizard.py b/yuthon_wechat/wizard/wecom_api_sync_wizard.py index d77cdf4e2..98a11eb43 100644 --- a/yuthon_wechat/wizard/wecom_api_sync_wizard.py +++ b/yuthon_wechat/wizard/wecom_api_sync_wizard.py @@ -62,7 +62,7 @@ class WeComApiSyncWizard(models.Model): for hr_department in hr_departments: user_result, user_list = self.sudo().env["wecom.apps"].sync_user_list(hr_department.wecom_id) if not user_result: - raise UserError(str(user_result)) + raise UserError(str(user_list)) if user_result: for user in user_list: biz_mail = user.get("biz_mail", "")