Skip to content

Commit

Permalink
fix(ingest/salesforce): add null check for description (datahub-proje…
Browse files Browse the repository at this point in the history
  • Loading branch information
dushayntAW authored and sleeperdeep committed Jun 25, 2024
1 parent c438acd commit f9cf38c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,11 @@ def _get_schema_field(
description = self._get_field_description(field, customField)

# escaping string starting with `#`
description = "\\" + description if description.startswith("#") else description
description = (
"\\" + description
if description and description.startswith("#")
else description
)

schemaField = SchemaFieldClass(
fieldPath=fieldPath,
Expand Down

0 comments on commit f9cf38c

Please sign in to comment.