diff --git a/spopt/region/skater.py b/spopt/region/skater.py index 6bfbfe5f..86a4a387 100755 --- a/spopt/region/skater.py +++ b/spopt/region/skater.py @@ -375,7 +375,9 @@ def tqdm(noop, desc=""): ) if local_n_subtrees <= current_n_subtrees: - raise Exception("Malformed MSF!") + raise ValueError( + "Malformed MSF! `local_n_subtrees <= current_n_subtrees`" + ) # compute the score of these components score = self.score(data, labels=local_labels, quorum=quorum)