diff options
author | Eric Mariasis <ericmariasis829@gmail.com> | 2020-02-01 10:04:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 10:04:58 -0500 |
commit | e4477c7c6e6860d359b167d68a37a7a688f47029 (patch) | |
tree | 44d7936459c42148081dc52733d3228fc9f04c9b /numpy | |
parent | 662be742eeceffcc1b8231b18ee3f9ee70465bac (diff) | |
download | numpy-e4477c7c6e6860d359b167d68a37a7a688f47029.tar.gz |
Update numpy/core/src/multiarray/descriptor.c
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/multiarray/descriptor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c index b136865ef..edadfe2f7 100644 --- a/numpy/core/src/multiarray/descriptor.c +++ b/numpy/core/src/multiarray/descriptor.c @@ -1496,7 +1496,7 @@ _convert_from_any(PyObject *obj, int align) return ret; } Py_DECREF(ret); - PyErr_SetString(PyExc_TypeError, "data type not understood"); + PyErr_Format(PyExc_TypeError, "Cannot interpret %R as a data type"); return NULL; } } |