Merge pull request #3985 from pypeclub/bugfix/missing_tags_in_integrate_ftrack

Fix - tags might be missing on representation
This commit is contained in:
Petr Kalis 2022-10-14 11:54:08 +02:00 committed by GitHub
commit a983c7bc37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
thumbnail_item["thumbnail"] = True
# Create copy of item before setting location
if "delete" not in repre["tags"]:
if "delete" not in repre.get("tags", []):
src_components_to_add.append(copy.deepcopy(thumbnail_item))
# Create copy of first thumbnail
if first_thumbnail_component is None:
@ -284,7 +284,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
not_first_components.append(review_item)
# Create copy of item before setting location
if "delete" not in repre["tags"]:
if "delete" not in repre.get("tags", []):
src_components_to_add.append(copy.deepcopy(review_item))
# Set location