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
8 changes: 6 additions & 2 deletions rp2paths/RP2paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,12 @@ def launch(tasks, outdir, timeout):
os.chdir(os.path.join(outdir))
# Compute each task
for t in tasks:
t._check_args()
t.compute(timeout=timeout)
try:
t._check_args()
t.compute(timeout=timeout)
except Exception as e:
print(f"Program will exit because of an error occurred while processing task {t}: {e}")
exit(1)
# Back to initial folder
os.chdir(os.path.join(base_dir))

Expand Down
Loading