Skip to content

Commit 200a334

Browse files
committed
Handle contacts with names that are empty string
1 parent 058edf1 commit 200a334

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

copy_contacts/copy_contacts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,6 @@
6464
log.warning(f"Found a contact in the source instance with multiple URNS. "
6565
f"The RapidPro UUID is '{contact.uuid}'")
6666
continue
67+
if contact.name == "":
68+
contact.name = None
6769
target_instance.update_contact(contact.urns[0], contact.name, contact.fields)

0 commit comments

Comments
 (0)