Skip to content

Commit

Permalink
Handle Administration.Error when updating contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
DeD1rk committed Oct 26, 2023
1 parent 0c690c4 commit df3b6b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/moneybirdsynchronization/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,11 @@ def _sync_contacts_with_outdated_mandates():
)

for contact in contacts:
create_or_update_contact(contact.member)
try:
create_or_update_contact(contact.member)
except Administration.Error as e:
logger.exception("Moneybird synchronization error: %s", e)
send_sync_error(e, contact.member)


def _try_create_or_update_external_invoices(queryset):
Expand Down

0 comments on commit df3b6b5

Please sign in to comment.