File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed 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