mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
📝 add warning
This commit is contained in:
parent
1e66017861
commit
206bcfe717
1 changed files with 9 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue