Skip to content

Commit f72e1c3

Browse files
rhettingergpshead
andauthored
Update Lib/statistics.py
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
1 parent 9e29e3c commit f72e1c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def stdev(data, xbar=None):
623623
mss_numerator = mss.numerator
624624
mss_denominator = mss.denominator
625625
except AttributeError:
626-
raise ValueError
626+
raise ValueError('inf or nan encountered in data')
627627
if issubclass(T, Decimal):
628628
return _decimal_sqrt_of_frac(mss_numerator, mss_denominator)
629629
return _float_sqrt_of_frac(mss_numerator, mss_denominator)

0 commit comments

Comments
 (0)