diff options
| author | Scott Gasch <[email protected]> | 2021-04-23 17:17:37 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-04-23 17:17:37 -0700 |
| commit | 5ca36697fe495f4cfd8a86ded14283bb20afc241 (patch) | |
| tree | 4a0857923a64b8d9c690653de2879cbb0e19df6c /math_utils.py | |
| parent | 7accf1acb956f55e875b863c53989fd1950e4b5b (diff) | |
Use ValueError, not Exception.
Diffstat (limited to 'math_utils.py')
| -rw-r--r-- | math_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
