📝 log deprecation warning

This commit is contained in:
Ondrej Samohel 2025-11-26 17:45:17 +01:00
parent b0005180f2
commit 3a24db94f5
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -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