mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
♻️ remove check for attribute
This commit is contained in:
parent
7f21d39d81
commit
da286e3cfb
1 changed files with 7 additions and 8 deletions
|
|
@ -1201,15 +1201,14 @@ class CreateContext:
|
|||
# remove this check.
|
||||
if is_product_base_type_supported():
|
||||
|
||||
if hasattr(creator, "product_base_type"):
|
||||
instance_data["productBaseType"] = creator.product_base_type
|
||||
else:
|
||||
warn(
|
||||
f"Creator {creator_identifier} does not support "
|
||||
"product base type. This will be required in future.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
instance_data["productBaseType"] = creator.product_base_type
|
||||
if creator.product_base_type is None:
|
||||
msg = (
|
||||
f"Creator {creator_identifier} does not set "
|
||||
"product base type. This will be required in future."
|
||||
)
|
||||
warn(msg, DeprecationWarning, stacklevel=2)
|
||||
self.log.warning(msg)
|
||||
|
||||
if active is not None:
|
||||
if not isinstance(active, bool):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue