Skip to content

Commit

Permalink
set to else in any other case
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Oct 29, 2024
1 parent 5c1538f commit bdbd747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benfordslaw/benfordslaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, alpha=0.05, method='chi2', pos=1, verbose=3):
# Approximation, near-uniform distribution
self.leading_digits = [10.0] * 10
self.digit_range = range(0, 10)
elif pos==0:
else:
raise Exception('[benfordslaw] >There is no leading digit distribution for the 0 digit!')

def fit(self, X):
Expand Down

0 comments on commit bdbd747

Please sign in to comment.