From cb112293d0b082e6116730e2f908c4032ae21c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9?= Date: Tue, 17 Dec 2024 09:34:42 +0100 Subject: [PATCH] Fix AttributeError in 'api_brevo.create_contact' --- 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: