Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ def execute(self):
last_workfile = self.data.get("last_workfile_path")
if os.path.exists(last_workfile):
self.log.debug(
"Last workfile exists. Skipping {} process.".format(
self.__class__.__name__
)
"Last workfile exists."
f" Skipping {self.__class__.__name__} process."
)
return

Expand Down Expand Up @@ -99,25 +98,18 @@ def execute(self):
task_type,
project_settings=project_settings
)

if use_last_published_workfile is None:
if use_last_published_workfile is False:
self.log.info(
(
"Seems like old version of settings is used."
' Can\'t access custom templates in host "{}".'.format(
host_name
)
)
f'Project "{project_name}" has turned off to use last'
' published workfile as first workfile for host'
f' "{host_name}"'
)
return
elif use_last_published_workfile is False:

if use_last_published_workfile is None:
self.log.info(
(
'Project "{}" has turned off to use last published'
' workfile as first workfile for host "{}"'.format(
project_name, host_name
)
)
"Seems like old version of settings is used."
f' Can\'t access custom templates in host "{host_name}".'
)
return

Expand Down Expand Up @@ -152,7 +144,7 @@ def execute(self):
)
if not last_published_workfile_path:
self.log.debug(
"Couldn't download {}".format(last_published_workfile_path)
f"Couldn't download {last_published_workfile_path}"
)
return

Expand Down
Loading