mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
fix exceptions
This commit is contained in:
parent
c9d90c1c3c
commit
ace014c777
1 changed files with 2 additions and 2 deletions
|
|
@ -185,13 +185,13 @@ class DictConditionalEntity(ItemEntity):
|
|||
children_def_keys = []
|
||||
for children_def in self.enum_children:
|
||||
if not isinstance(children_def, dict):
|
||||
raise EntitySchemaError((
|
||||
raise EntitySchemaError(self, (
|
||||
"Children definition under key 'enum_children' must"
|
||||
" be a dictionary."
|
||||
))
|
||||
|
||||
if "key" not in children_def:
|
||||
raise EntitySchemaError((
|
||||
raise EntitySchemaError(self, (
|
||||
"Children definition under key 'enum_children' miss"
|
||||
" 'key' definition."
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue