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.
This commit is contained in:
Petr Kalis 2023-05-05 13:37:55 +02:00
parent ac02eac861
commit 4e455ead31

View file

@ -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