mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Fix
When there is no Deadline setting avaliable.
This commit is contained in:
parent
5f709b0892
commit
cdc0a80846
1 changed files with 8 additions and 6 deletions
|
|
@ -37,12 +37,14 @@ class ExtractWorkfileXgen(publish.Extractor):
|
|||
)
|
||||
return
|
||||
|
||||
publish_settings = instance.context["deadline"]["publish"]
|
||||
if not publish_settings["MayaSubmitDeadline"]["use_published"]:
|
||||
self.log.debug(
|
||||
"Not using the published workfile. Abort Xgen extraction."
|
||||
)
|
||||
return
|
||||
deadline_settings = instance.context.get("deadline")
|
||||
if deadline_settings:
|
||||
publish_settings = deadline_settings["publish"]
|
||||
if not publish_settings["MayaSubmitDeadline"]["use_published"]:
|
||||
self.log.debug(
|
||||
"Not using the published workfile. Abort Xgen extraction."
|
||||
)
|
||||
return
|
||||
|
||||
# Collect Xgen and Delta files.
|
||||
xgen_files = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue