[Numpy-svn] r8111 - trunk/numpy/ma

numpy-svn at scipy.org numpy-svn at scipy.org
Sun Feb 14 02:32:25 EST 2010


Author: pierregm
Date: 2010-02-14 01:32:25 -0600 (Sun, 14 Feb 2010)
New Revision: 8111

Modified:
   trunk/numpy/ma/core.py
Log:
Fix #1367

Modified: trunk/numpy/ma/core.py
===================================================================
--- trunk/numpy/ma/core.py	2010-02-14 06:53:05 UTC (rev 8110)
+++ trunk/numpy/ma/core.py	2010-02-14 07:32:25 UTC (rev 8111)
@@ -2786,7 +2786,7 @@
                 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




More information about the Numpy-svn mailing list