We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a353c5 commit a07a68dCopy full SHA for a07a68d
fmriprep/cli/run.py
@@ -514,11 +514,7 @@ def build_workflow(opts, retval):
514
if opts.clean_workdir:
515
from niworkflows.utils.misc import clean_directory
516
build_log.log("Clearing previous fMRIPrep working directory: %s" % work_dir)
517
- try:
518
- success = clean_directory(work_dir)
519
- except Exception:
520
- success = False
521
- if not success:
+ if not clean_directory(work_dir):
522
build_log.warning("Could not clear all contents of working directory: %s" % work_dir)
523
524
retval['return_code'] = 1
0 commit comments