mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
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:
parent
ac02eac861
commit
4e455ead31
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue