mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-03 20:27:50 +00:00
fix(ingest/salesforce): add null check for description (#10239)
This commit is contained in:
parent
3d1571dd6f
commit
278a39d3df
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user