summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Mariasis <ericmariasis829@gmail.com>2020-02-01 10:12:45 -0500
committerGitHub <noreply@github.com>2020-02-01 10:12:45 -0500
commit9bbe90d82506d24a71e6b6001726d798d6643854 (patch)
tree2f38b2a28a4769b798a9cc8b3421211b29537ed2
parentd8f865f3a5e040cbf1871e0da86e76a31b8764ca (diff)
downloadnumpy-9bbe90d82506d24a71e6b6001726d798d6643854.tar.gz
Update numpy/core/src/multiarray/descriptor.c
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
-rw-r--r--numpy/core/src/multiarray/descriptor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c
index f6d70b68e..4cae733e4 100644
--- a/numpy/core/src/multiarray/descriptor.c
+++ b/numpy/core/src/multiarray/descriptor.c
@@ -1492,7 +1492,7 @@ _convert_from_any(PyObject *obj, int align)
return ret;
}
Py_DECREF(ret);
- PyErr_Format(PyExc_TypeError, "Cannot interpret %R as a data type");
+ PyErr_Format(PyExc_TypeError, "Cannot interpret %R as a data type", obj);
return NULL;
}
}