mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
Throw warning instead of assertion error
This commit is contained in:
parent
772f8515c9
commit
8c8e3789fb
1 changed files with 5 additions and 2 deletions
|
|
@ -29,8 +29,11 @@ class CollectAnimationOutputGeometry(pyblish.api.InstancePlugin):
|
|||
out_set = next((i for i in instance.data["setMembers"] if
|
||||
i.endswith("out_SET")), None)
|
||||
|
||||
assert out_set, ("Expecting out_SET for instance of family"
|
||||
" '%s'" % family)
|
||||
if out_set is None:
|
||||
warning = "Expecting out_SET for instance of family '%s'" % family
|
||||
self.log.warning(warning)
|
||||
return
|
||||
|
||||
members = cmds.ls(cmds.sets(out_set, query=True), long=True)
|
||||
|
||||
# Get all the relatives of the members
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue