summaryrefslogtreecommitdiff
path: root/numpy/ma
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-03-26 10:25:36 +0100
committerEric Wieser <wieser.eric@gmail.com>2017-03-28 20:44:40 +0100
commitcd01f01e9238bf3d4d42613d804e06d35b94b48f (patch)
tree8d0f811e0c12985afaaf1bf2924541d154148eed /numpy/ma
parent09d4d35bb979dd0d5d0781946f59f362765eca66 (diff)
downloadnumpy-cd01f01e9238bf3d4d42613d804e06d35b94b48f.tar.gz
MAINT: Remove manual error message
Diffstat (limited to 'numpy/ma')
-rw-r--r--numpy/ma/core.py2
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):