mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
skip collector if no instance node found
This commit is contained in:
parent
5e4138e0ec
commit
d7c0dff7b7
1 changed files with 5 additions and 1 deletions
|
|
@ -39,7 +39,11 @@ class CollectFilesForCleaningUp(pyblish.api.InstancePlugin,
|
|||
|
||||
import hou
|
||||
|
||||
node = hou.node(instance.data["instance_node"])
|
||||
node = hou.node(instance.data.get("instance_node", ""))
|
||||
if not node:
|
||||
self.log.debug("Skipping Collector. Instance has no instance_node")
|
||||
return
|
||||
|
||||
output_parm = lib.get_output_parameter(node)
|
||||
if not output_parm:
|
||||
self.log.debug("ROP node type '{}' is not supported for cleaning up."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue