File tree Expand file tree Collapse file tree 2 files changed +6
-30
lines changed Expand file tree Collapse file tree 2 files changed +6
-30
lines changed Original file line number Diff line number Diff line change @@ -662,27 +662,6 @@ jobs:
662
662
--output-spaces MNI152NLin2009cAsym:res-2 anat func \
663
663
--mem-mb 14336 --nthreads 4 -vv --debug compcor
664
664
- run : *check_outputs
665
- - run :
666
- name : Generate report with one artificial error
667
- command : |
668
- set -x
669
- sudo mv /tmp/${DATASET}/fmriprep/sub-100185.html \
670
- /tmp/${DATASET}/fmriprep/sub-100185_noerror.html
671
- UUID=$(grep uuid /tmp/${DATASET}/work/*/config.toml | cut -d\" -f 2 | tail -n 1)
672
- mkdir -p /tmp/${DATASET}/fmriprep/sub-100185/log/$UUID/
673
- cp /tmp/src/fmriprep/fmriprep/data/tests/crash_files/*.txt \
674
- /tmp/${DATASET}/fmriprep/sub-100185/log/$UUID/
675
- set +e
676
- fmriprep-docker -i nipreps/fmriprep:latest \
677
- -e FMRIPREP_DEV 1 --user $(id -u):$(id -g) \
678
- --config $PWD/nipype.cfg -w /tmp/${DATASET}/work \
679
- /tmp/data/${DATASET} /tmp/${DATASET}/fmriprep participant \
680
- --fs-no-reconall --sloppy --write-graph \
681
- --output-spaces MNI152NLin2009cAsym:res-2 anat func \
682
- --reports-only --config-file /tmp/${DATASET}/work/${UUID}/config.toml -vv
683
- RET=$?
684
- set -e
685
- [[ "$RET" -eq "1" ]]
686
665
- run :
687
666
name : Clean working directory
688
667
when : on_success
Original file line number Diff line number Diff line change @@ -224,17 +224,14 @@ def main():
224
224
write_bidsignore (config .execution .fmriprep_dir )
225
225
226
226
if failed_reports :
227
- config . loggers . cli . error (
228
- " Report generation was not successful for the following participants : %s." ,
229
- ", " .join (failed_reports ),
227
+ msg = (
228
+ ' Report generation was not successful for the following participants '
229
+ f': { ", " .join (failed_reports )} .'
230
230
)
231
+ config .loggers .cli .error (msg )
232
+ if sentry_sdk is not None :
233
+ sentry_sdk .capture_message (msg , level = "error" )
231
234
232
- if sentry_sdk is not None and failed_reports :
233
- sentry_sdk .capture_message (
234
- "Report generation was not successful for the following participants : %s." ,
235
- ", " .join (failed_reports ),
236
- level = "error" ,
237
- )
238
235
sys .exit (int ((errno + len (failed_reports )) > 0 ))
239
236
240
237
You can’t perform that action at this time.
0 commit comments