Skip to content

Commit 3976e8b

Browse files
committed
Check if false_path exists before writing
1 parent c95aee0 commit 3976e8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/galaxy/job_execution/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ def compute_outputs(self) -> None:
288288
job_outputs = []
289289
for da in job.output_datasets + job.output_library_datasets:
290290
da_false_path = dataset_path_rewriter.rewrite_dataset_path(da.dataset, "output")
291-
#if da_false_path:
292-
# with open(da_false_path, "wb"):
293-
# pass
291+
if da_false_path and not os.path.exists(da_false_path):
292+
with open(da_false_path, "ab"):
293+
pass
294294
mutable = da.dataset.dataset.external_filename is None
295295
dataset_path = DatasetPath(
296296
da.dataset.dataset.id,

0 commit comments

Comments
 (0)