mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Get rid of RuntimeError.
This commit is contained in:
parent
4fe872988b
commit
444db07d3c
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ math_error()
|
||||||
else if (errno == ERANGE)
|
else if (errno == ERANGE)
|
||||||
err_setstr(OverflowError, "math range error");
|
err_setstr(OverflowError, "math range error");
|
||||||
else
|
else
|
||||||
err_errno(RuntimeError);
|
err_errno(ValueError); /* Unexpected math error */
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue