Update client/ayon_core/pipeline/workfile/workfile_template_builder.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Roy Nieterau 2024-04-03 16:16:17 +02:00 committed by GitHub
parent ab408bd177
commit 75dbba65bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -498,9 +498,14 @@ class AbstractTemplateBuilder(object):
process if version is created
"""
if any(value is None for value in [template_path,
keep_placeholders,
create_first_version]):
if any(
value is None
for value in [
template_path,
keep_placeholders,
create_first_version,
]
):
template_preset = self.get_template_preset()
if template_path is None:
template_path = template_preset["path"]