Skip to content

Commit

Permalink
OK this one is the last
Browse files Browse the repository at this point in the history
  • Loading branch information
agahkarakuzu committed Sep 3, 2024
1 parent 9e9bd6c commit cae8496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/neurolibre_celery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def preview_download_data(self, screening_dict):
task.fail(f"Data exists for {project_name}; not overwriting by default! Please set overwrite=True.")

data_path = task.join_data_root_path(project_name)
if os.path.exists(data_path) and not self.screening.is_overwrite:
if os.path.exists(data_path) and not task.screening.is_overwrite:
task.fail(f"Data exists for {project_name} already downloaded to {data_path}; \
not overwriting by default! Please set overwrite=True.")
return
Expand Down

0 comments on commit cae8496

Please sign in to comment.