From 4e455ead316fbc334502be51bde30e5eca0f9e3c Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Fri, 5 May 2023 13:37:55 +0200 Subject: [PATCH] Instance data might not contain "publish" key In that case publish is implicit, more likely it will be set explicitly to False than not existing at all. --- openpype/pipeline/publish/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpype/pipeline/publish/lib.py b/openpype/pipeline/publish/lib.py index 58d9fd8a05..cf52c113c3 100644 --- a/openpype/pipeline/publish/lib.py +++ b/openpype/pipeline/publish/lib.py @@ -804,7 +804,7 @@ def get_published_workfile_instance(context): # test if there is instance of workfile waiting # to be published. - if i.data["publish"] is not True: + if not i.data.get("publish", True): continue return i