Fix: Download last workfile doesn't work if wf not already downloaded (#4942)

This commit is contained in:
Félix David 2023-05-18 14:39:27 +02:00 committed by GitHub
parent a8bce5a28e
commit 87802d0620
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,8 +237,7 @@ def download_last_published_workfile(
last_published_workfile_path = get_representation_path_with_anatomy( last_published_workfile_path = get_representation_path_with_anatomy(
workfile_representation, anatomy workfile_representation, anatomy
) )
if (not last_published_workfile_path or if not last_published_workfile_path:
not os.path.exists(last_published_workfile_path)):
return return
# If representation isn't available on remote site, then return. # If representation isn't available on remote site, then return.