mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
move comment to correct place
This commit is contained in:
parent
07650130c6
commit
fc7ca39f39
1 changed files with 1 additions and 2 deletions
|
|
@ -146,8 +146,6 @@ def get_product_name(
|
|||
default_template=default_template,
|
||||
project_settings=project_settings
|
||||
)
|
||||
# Simple check of task name existence for template with {task} in
|
||||
# - missing task should be possible only in Standalone publisher
|
||||
if task_name and not task_entity:
|
||||
warnings.warn(
|
||||
"Used deprecated 'task' argument. Please use"
|
||||
|
|
@ -161,6 +159,7 @@ def get_product_name(
|
|||
task_type = task_entity["taskType"]
|
||||
|
||||
template_low = template.lower()
|
||||
# Simple check of task name existence for template with {task[name]} in
|
||||
if not task_name and "{task" in template_low:
|
||||
raise TaskNotSetError()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue