提交 2869fd17 authored 作者: Frederic's avatar Frederic

Don't override the NumPy error message.

Otherwise, we don't know if the problem is missing memory or not.
上级 6ec66344
......@@ -3887,8 +3887,7 @@ class Reshape(Op):
PyArray_CORDER);
if (!%(z)s)
{
PyErr_Format(PyExc_ValueError,
"Could not reshape array.");
//The error message should have been set by PyArray_Newshape
%(fail)s;
}
if (!PyArray_ISALIGNED(%(z)s)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论