From 32630ca703a74881ed7856cef4c3afc3ac82f998 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Wed, 11 Aug 2021 12:03:00 +0200 Subject: [PATCH] Fix - validate takes repre["files"] as list all the time repre["files"] might be list or str, loop for string wasn't working --- .../plugins/publish/validate_expected_and_rendered_files.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openpype/modules/deadline/plugins/publish/validate_expected_and_rendered_files.py b/openpype/modules/deadline/plugins/publish/validate_expected_and_rendered_files.py index c71b5106ec..305c71b035 100644 --- a/openpype/modules/deadline/plugins/publish/validate_expected_and_rendered_files.py +++ b/openpype/modules/deadline/plugins/publish/validate_expected_and_rendered_files.py @@ -181,6 +181,10 @@ class ValidateExpectedFiles(pyblish.api.InstancePlugin): """Returns set of file names from metadata.json""" expected_files = set() - for file_name in repre["files"]: + files = repre["files"] + if not isinstance(files, list): + files = [files] + + for file_name in files: expected_files.add(file_name) return expected_files