We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd53c3a commit a4f8356Copy full SHA for a4f8356
1 file changed
pyatlan/client/atlan.py
@@ -341,9 +341,13 @@ def get_asset_by_guid(
341
GET_ENTITY_BY_GUID.format_path_with_params(guid),
342
query_params,
343
)
344
- raw_json["entity"]["attributes"].update(
345
- raw_json["entity"]["relationshipAttributes"]
346
- )
+ if (
+ "relationshipAttributes" in raw_json["entity"]
+ and raw_json["entity"]["relationshipAttributes"]
347
+ ):
348
+ raw_json["entity"]["attributes"].update(
349
+ raw_json["entity"]["relationshipAttributes"]
350
+ )
351
raw_json["entity"]["relationshipAttributes"] = {}
352
asset = AssetResponse[A](**raw_json).entity
353
asset.is_incomplete = False
0 commit comments