Skip to content

Commit e0f6ed9

Browse files
committed
ValueErrors instead of general Exceptions
1 parent 5e283ca commit e0f6ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rsatoolbox/vis/model_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def plot_model_comparison(result, sort=False, colors=None,
430430
significant = p_pairwise < crit
431431
else:
432432
if 'uncorrected' not in multiple_pair_testing.lower():
433-
raise Exception(
433+
raise ValueError(
434434
'plot_model_comparison: Argument ' +
435435
'multiple_pair_testing is incorrectly defined as ' +
436436
multiple_pair_testing + '.')

0 commit comments

Comments
 (0)