Skip to content

Commit

Permalink
Fixed merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachinbisht27 committed Jul 1, 2024
2 parents d75c9e2 + bc02b53 commit 4a4f942
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions api/services/user_attribute_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ def handle_contact_fields_data(self, contact_data: dict[str, Any]):
self.user_id
)
for field_key, field_value in contact_fields_data.items():

if not re.match(r"^\w+$", field_key) or field_key.lower() == "name":
if not re.match(r"^\w+$", field_key):
logger.error(
f"Found a contact variable {field_key} for {self.user_phone} "
"with special character which can't be processed."
)
continue
elif field_key.lower() == "name":
continue

value = field_value.get("value")
Expand Down

0 comments on commit 4a4f942

Please sign in to comment.