mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
handle wrapper types in create object
This commit is contained in:
parent
568c6e5f61
commit
083dd58b39
1 changed files with 6 additions and 0 deletions
|
|
@ -271,6 +271,12 @@ class SchemasHub:
|
|||
"Got unresolved schema data of type \"{}\"".format(schema_type)
|
||||
)
|
||||
|
||||
if schema_type in WRAPPER_TYPES:
|
||||
raise ValueError((
|
||||
"Function `create_schema_object` can't create entities"
|
||||
" of any wrapper type. Got type: \"{}\""
|
||||
).format(schema_type))
|
||||
|
||||
klass = self._loaded_types.get(schema_type)
|
||||
if not klass:
|
||||
raise KeyError("Unknown type \"{}\"".format(schema_type))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue