mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
removed runtime error form get_invalid
This commit is contained in:
parent
a324e5db91
commit
76873371bf
2 changed files with 6 additions and 6 deletions
|
|
@ -67,7 +67,7 @@ class CollectLook(pyblish.api.InstancePlugin):
|
|||
hosts = ["maya"]
|
||||
|
||||
# Ignore specifically named sets (check with endswith)
|
||||
IGNORE = ["out_SET", "controls_SET", "_INST"]
|
||||
IGNORE = ["out_SET", "controls_SET", "_INST", "_CON"]
|
||||
|
||||
def process(self, instance):
|
||||
"""Collect the Look in the instance with the correct layer settings"""
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ class ValidateLookMembers(pyblish.api.InstancePlugin):
|
|||
|
||||
invalid_ids = self.get_invalid(instance)
|
||||
if invalid_ids:
|
||||
raise RuntimeError("Members found without "
|
||||
"asset IDs: {0}".format(invalid_ids))
|
||||
raise RuntimeError("Found invalid nodes.\nNo ID : "
|
||||
"{}".format(invalid_ids))
|
||||
|
||||
@classmethod
|
||||
def get_invalid(cls, instance):
|
||||
|
|
@ -39,6 +39,6 @@ class ValidateLookMembers(pyblish.api.InstancePlugin):
|
|||
members.update([member['name'] for member in relation['members']])
|
||||
|
||||
invalid = [m for m in members if not lib.get_id(m)]
|
||||
if invalid:
|
||||
raise RuntimeError("Found invalid nodes.\nNo ID : "
|
||||
"{}".format(invalid))
|
||||
|
||||
return invalid
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue