From 0fba46e44bcfbaaa637d59daae1a716747f95c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9?= <104012698+chloend@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:00:32 +0100 Subject: [PATCH] fix(Brevo): AttributeError in 'api_brevo.create_contact' (#1594) --- lemarche/utils/apis/api_brevo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemarche/utils/apis/api_brevo.py b/lemarche/utils/apis/api_brevo.py index a9ea45eb3..39c399982 100644 --- a/lemarche/utils/apis/api_brevo.py +++ b/lemarche/utils/apis/api_brevo.py @@ -81,7 +81,7 @@ def create_contact(user, list_id: int, tender=None): api_response = api_instance.create_contact(new_contact).to_dict() user.brevo_contact_id = api_response.get("id") user.save() - logger.info(f"Success Brevo->ContactsApi->create_contact: {api_response.body}") + logger.info(f"Success Brevo->ContactsApi->create_contact: {api_response}") else: logger.info("User already exists in Brevo") except ApiException as e: