Skip to content

Commit

Permalink
fix(Brevo): AttributeError in 'api_brevo.create_contact' (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
chloend authored Dec 17, 2024
1 parent b7b1c04 commit 84c637c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lemarche/utils/apis/api_brevo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 84c637c

Please sign in to comment.