mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
📝 log deprecation warning
This commit is contained in:
parent
b0005180f2
commit
3a24db94f5
1 changed files with 5 additions and 3 deletions
|
|
@ -760,13 +760,15 @@ class CreateContext:
|
|||
|
||||
for creator_class in report.plugins:
|
||||
if not creator_class.product_base_type:
|
||||
warn(
|
||||
f"Provided creator {creator_class!r} doesn't have "
|
||||
message = (f"Provided creator {creator_class!r} doesn't have "
|
||||
"product base type attribute defined. This will be "
|
||||
"required in future.",
|
||||
"required in future.")
|
||||
warn(
|
||||
message,
|
||||
DeprecationWarning,
|
||||
stacklevel=2
|
||||
)
|
||||
self.log.warning(message)
|
||||
continue
|
||||
|
||||
creator_identifier = creator_class.identifier
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue