Skip to content

Commit 4a69ee2

Browse files
author
Shoshana Berleant
committed
don't log and raise for the same exception
1 parent de83567 commit 4a69ee2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/workflows/dmri/connectivity/group_connectivity.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,7 @@ def create_average_networks_by_group_workflow(group_list, data_dir, subjects_dir
461461
l4infosource.inputs.group_id1 = list(group_list.keys())[0]
462462
l4infosource.inputs.group_id2 = list(group_list.keys())[1]
463463
except IndexError as e:
464-
print('The create_average_networks_by_group_workflow requires 2 groups')
465-
raise_from(Exception(), e)
464+
raise_from(Exception('The create_average_networks_by_group_workflow requires 2 groups'), e)
466465

467466
l4info = dict(networks=[['group_id', '']], CMatrices=[['group_id', '']], fibmean=[['group_id', 'mean_fiber_length']],
468467
fibdev=[['group_id', 'fiber_length_std']])

0 commit comments

Comments
 (0)