mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-30 17:44:16 +00:00
fix 2918: Added Error Handling in policy tags (#2933)
This commit is contained in:
parent
b570d520ac
commit
fab36fe1b2
@ -55,13 +55,15 @@ def get_columns(bq_schema):
|
||||
"raw_data_type": str(_get_sqla_column_type(field)),
|
||||
"policy_tags": None,
|
||||
}
|
||||
if field.policy_tags:
|
||||
col_obj["policy_tags"] = (
|
||||
PolicyTagManagerClient()
|
||||
.get_policy_tag(name=field.policy_tags.names[0])
|
||||
.display_name
|
||||
)
|
||||
|
||||
try:
|
||||
if field.policy_tags:
|
||||
col_obj["policy_tags"] = (
|
||||
PolicyTagManagerClient()
|
||||
.get_policy_tag(name=field.policy_tags.names[0])
|
||||
.display_name
|
||||
)
|
||||
except Exception as err:
|
||||
logger.info(f"Skipping Policy Tag: {err}")
|
||||
col_list.append(col_obj)
|
||||
return col_list
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user