Skip to content

Commit

Permalink
cahnge Exception to ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Jan 9, 2023
1 parent 237398f commit 179607d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spopt/region/skater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 179607d

Please sign in to comment.