fix(global): failing due missing tag in representation

This commit is contained in:
Jakub Jezek 2020-02-28 12:28:02 +01:00
parent 682bb996ab
commit 833ba22ecf
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -27,8 +27,9 @@ class ExtractJpegEXR(pyblish.api.InstancePlugin):
representations_new = representations[:]
for repre in representations:
tags = repre.get("tags", [])
self.log.debug(repre)
valid = 'review' in repre['tags'] or "thumb-nuke" in repre['tags']
valid = 'review' in tags or "thumb-nuke" in tags
if not valid:
continue