📝 add warning

This commit is contained in:
Ondrej Samohel 2025-12-02 15:47:58 +01:00
parent 1e66017861
commit 206bcfe717
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -149,6 +149,15 @@ def get_publish_template_name(
Returns:
str: Template name which should be used for integration.
"""
if not product_base_type:
msg = (
"Argument 'product_base_type' is not provided to"
" 'get_publish_template_name' function. This argument"
" will be required in future versions."
)
warnings.warn(msg, DeprecationWarning)
if logger:
logger.warning(msg)
template = None
filter_criteria = {