diff --git a/pyapacheatlas/core/entity.py b/pyapacheatlas/core/entity.py index 0081960..0456f50 100644 --- a/pyapacheatlas/core/entity.py +++ b/pyapacheatlas/core/entity.py @@ -226,7 +226,7 @@ def addRelationship(self, **kwargs): Union(dict, :class:`pyapacheatlas.core.entity.AtlasEntity`) """ relationshipAttributes_was_uninitialized = isinstance( - self.customAttributes, AtlasUnInit) + self.relationshipAttributes, AtlasUnInit) relationships_to_add = {} if relationshipAttributes_was_uninitialized: self.relationshipAttributes = {}