fix(ingest/salesforce): add null check for description (#10239)

This commit is contained in:
dushayntAW 2024-04-09 15:13:39 +05:30 committed by GitHub
parent 3d1571dd6f
commit 278a39d3df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -576,7 +576,11 @@ class SalesforceSource(Source):
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,