mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Nuke: adding exception for missing template
This commit is contained in:
parent
cf1e90aeaa
commit
35f3c7ff80
1 changed files with 8 additions and 2 deletions
|
|
@ -1676,8 +1676,14 @@ def process_workfile_builder():
|
|||
log.info("Adding nodes from `{}`...".format(
|
||||
custom_template_path
|
||||
))
|
||||
# import nodes into current script
|
||||
nuke.nodePaste(custom_template_path)
|
||||
try:
|
||||
# import nodes into current script
|
||||
nuke.nodePaste(custom_template_path)
|
||||
except RuntimeError:
|
||||
raise RuntimeError((
|
||||
"Template defined for project: {} is not working. "
|
||||
"Talk to your manager for an advise").format(
|
||||
custom_template_path))
|
||||
|
||||
# if builder at start is defined
|
||||
if builder_on:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue