Skip to content

Commit

Permalink
Error log for ignoring contact field
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachinbisht27 committed Jul 1, 2024
1 parent 82ef38c commit bc02b53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/services/user_attribute_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ def handle_contact_fields_data(self, contact_data: dict[str, Any]):
)
for field_key, field_value in contact_fields_data.items():
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

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

0 comments on commit bc02b53

Please sign in to comment.