diff options
author | Eric Mariasis <ericmariasis829@gmail.com> | 2020-02-01 10:04:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 10:04:38 -0500 |
commit | 662be742eeceffcc1b8231b18ee3f9ee70465bac (patch) | |
tree | 9123a3415d996243b356b294bea50486fc018af4 /numpy | |
parent | 95ace5d1ec295c117631c82aecea4310182e2437 (diff) | |
download | numpy-662be742eeceffcc1b8231b18ee3f9ee70465bac.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 2200d44ff..b136865ef 100644 --- a/numpy/core/src/multiarray/descriptor.c +++ b/numpy/core/src/multiarray/descriptor.c @@ -1477,7 +1477,7 @@ _convert_from_any(PyObject *obj, int align) return _convert_from_dict(obj, align); } else if (PyArray_Check(obj)) { - PyErr_SetString(PyExc_TypeError, "Object is an unrecognized array type"); + PyErr_SetString(PyExc_TypeError, "Cannot construct a dtype from an array"); return NULL; } else { |