Test if col[0] is remainder or list for file_name

This commit is contained in:
Allan Ihsan 2022-03-21 15:53:39 +03:00
parent 8efa09c6d2
commit 80e08d43ce

View file

@ -453,7 +453,10 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
# we must compare against the render filename string
# We are grabbing the render filename string
# from the collection that we have grabbed from exp_files
render_file_name = os.path.basename(col[0])
if isinstance(col, list):
render_file_name = os.path.basename(col[0])
else:
render_file_name = os.path.basename(col)
if re.match(aov_pattern, render_file_name):
preview = True
break