Skip to content

Commit

Permalink
Raise error appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
hwpang committed Jul 9, 2024
1 parent b62fd82 commit fe0ecb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysidt/sidt.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ def fit_tree(self, data=None, confidence_level=0.95):

for node in self.nodes.values():
if not node.items:
logging.info(node.name)
raise ValueError
logging.error(node.name)
raise ValueError("Node has no data")

data = [d.value for d in node.items]
n = len(data)
Expand Down

0 comments on commit fe0ecb9

Please sign in to comment.