]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Get rid of RuntimeError.
authorGuido van Rossum <guido@python.org>
Wed, 26 Feb 1992 15:26:56 +0000 (15:26 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 26 Feb 1992 15:26:56 +0000 (15:26 +0000)
Modules/mathmodule.c

index 03b0705c1d44f9d2767ddcc77f595dd65f34483a..e6decaa0a839fe07911d9b74d4f8047cc73c60f4 100644 (file)
@@ -55,7 +55,7 @@ math_error()
        else if (errno == ERANGE)
                err_setstr(OverflowError, "math range error");
        else
-               err_errno(RuntimeError);
+               err_errno(ValueError); /* Unexpected math error */
        return NULL;
 }