added skip logs to extract review

This commit is contained in:
iLLiCiTiT 2020-11-20 19:12:24 +01:00
parent b7c734dae3
commit 88407488cd

View file

@ -122,11 +122,24 @@ class ExtractReview(pyblish.api.InstancePlugin):
# Loop through representations
for repre in tuple(instance.data["representations"]):
repre_name = str(repre.get("name"))
tags = repre.get("tags") or []
if "review" not in tags or "thumbnail" in tags:
if "review" not in tags:
self.log.debug((
"Repre: {} - Didn't found \"review\" in tags. Skipping"
).format(repre_name))
continue
if "thumbnail" in tags:
self.log.debug((
"Repre: {} - Found \"thumbnail\" in tags. Skipping"
).format(repre_name))
continue
if "passing" in tags:
self.log.debug((
"Repre: {} - Found \"passing\" in tags. Skipping"
).format(repre_name))
continue
input_ext = repre["ext"]