mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #6032 from ynput/bugfix/thumbnail-representation-key-could-be-missing
Refactor code to handle missing "representations" key in instance data
This commit is contained in:
commit
62a685b0e4
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
|||
|
||||
# Make sure cleanup happens to representations which are having both
|
||||
# tags `delete` and `need_thumbnail`
|
||||
for repre in tuple(instance.data["representations"]):
|
||||
for repre in tuple(instance.data.get("representations", [])):
|
||||
tags = repre.get("tags") or []
|
||||
# skip representations which are going to be published on farm
|
||||
if "publish_on_farm" in tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue