Skip to content

Commit 0149100

Browse files
committed
fix check exist
1 parent ad48fde commit 0149100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpdispatcher/dp_cloud_server_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ def download(self, submission):
168168
def _check_if_job_has_already_downloaded(self, target, local_root):
169169
backup_file_location = os.path.join(local_root, 'backup', os.path.split(target)[1])
170170
if os.path.exists(backup_file_location):
171-
return False
172-
else:
173171
return True
172+
else:
173+
return False
174174

175175
def _backup(self, local_root, target, keep_backup=True):
176176
try:

0 commit comments

Comments
 (0)