Skip to content

Commit e9bfc55

Browse files
authored
Merge pull request #51 from AfricasVoices/empty-string-contact-names
Handle contacts with names that are empty string
2 parents 058edf1 + 200a334 commit e9bfc55

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)