summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorpierregm <pierregm@localhost>2010-02-14 07:32:25 +0000
committerpierregm <pierregm@localhost>2010-02-14 07:32:25 +0000
commitf45d580284a5cbb96277733ced149c4e7b7d3244 (patch)
treef94d4e49042b8db5e6f017f5813df1002fe162cb /numpy
parent18c907f73b760346855351c88562aaf4edf0013f (diff)
downloadnumpy-f45d580284a5cbb96277733ced149c4e7b7d3244.tar.gz
Fix #1367
Diffstat (limited to 'numpy')
-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 26388ffb5..09710a1a9 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -2786,7 +2786,7 @@ class MaskedArray(ndarray):
self._mask.shape = self.shape
except ValueError:
self._mask = nomask
- except AttributeError:
+ except (TypeError, AttributeError):
# When _mask.shape is not writable (because it's a void)
pass
# Finalize the fill_value for structured arrays