From cd01f01e9238bf3d4d42613d804e06d35b94b48f Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Sun, 26 Mar 2017 10:25:36 +0100 Subject: MAINT: Remove manual error message --- numpy/ma/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/ma') 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): -- cgit v1.2.1