diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-03-26 10:25:36 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-03-28 20:44:40 +0100 |
commit | cd01f01e9238bf3d4d42613d804e06d35b94b48f (patch) | |
tree | 8d0f811e0c12985afaaf1bf2924541d154148eed | |
parent | 09d4d35bb979dd0d5d0781946f59f362765eca66 (diff) | |
download | numpy-cd01f01e9238bf3d4d42613d804e06d35b94b48f.tar.gz |
MAINT: Remove manual error message
-rw-r--r-- | numpy/ma/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index ca233ca9f..9386ff3be 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -4362,7 +4362,7 @@ class MaskedArray(ndarray): if self.shape is (): if axis not in (None, 0): - raise np.AxisError("'axis' entry is out of bounds") + raise np.AxisError(axis=axis, ndim=self.ndim) return 1 elif axis is None: if kwargs.get('keepdims', False): |