mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-29 20:25:56 +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)
|
description = self._get_field_description(field, customField)
|
||||||
|
|
||||||
# escaping string starting with `#`
|
# escaping string starting with `#`
|
||||||
description = "\\" + description if description.startswith("#") else description
|
description = (
|
||||||
|
"\\" + description
|
||||||
|
if description and description.startswith("#")
|
||||||
|
else description
|
||||||
|
)
|
||||||
|
|
||||||
schemaField = SchemaFieldClass(
|
schemaField = SchemaFieldClass(
|
||||||
fieldPath=fieldPath,
|
fieldPath=fieldPath,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user