X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=math_utils.py;h=2e126990fba0d7b9138f4a4b6238440aae89bb82;hb=09e6d10face80d98a4578ff54192b5c8bec007d7;hp=2cacc2f628ee90761acdce30442cb3d1beb9f1de;hpb=497fb9e21f45ec08e1486abaee6dfa7b20b8a691;p=python_utils.git diff --git a/math_utils.py b/math_utils.py index 2cacc2f..2e12699 100644 --- a/math_utils.py +++ b/math_utils.py @@ -43,7 +43,7 @@ def gcd_floats(a: float, b: float) -> float: def gcd_float_sequence(lst: List[float]) -> float: if len(lst) <= 0: - raise Exception("Need at least one number") + raise ValueError("Need at least one number") elif len(lst) == 1: return lst[0] assert len(lst) >= 2