diff options
author | pierregm <pierregm@localhost> | 2010-02-14 07:32:25 +0000 |
---|---|---|
committer | pierregm <pierregm@localhost> | 2010-02-14 07:32:25 +0000 |
commit | f45d580284a5cbb96277733ced149c4e7b7d3244 (patch) | |
tree | f94d4e49042b8db5e6f017f5813df1002fe162cb /numpy | |
parent | 18c907f73b760346855351c88562aaf4edf0013f (diff) | |
download | numpy-f45d580284a5cbb96277733ced149c4e7b7d3244.tar.gz |
Fix #1367
Diffstat (limited to 'numpy')
-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 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 |