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

numpy-svn@scip... numpy-svn@scip...
Sun Feb 14 17:04:18 CST 2010


Author: pierregm
Date: 2010-02-14 17:04:18 -0600 (Sun, 14 Feb 2010)
New Revision: 8112

Modified:
   trunk/numpy/ma/core.py
Log:
Fix #1367 (round 2)

Modified: trunk/numpy/ma/core.py
===================================================================
--- trunk/numpy/ma/core.py	2010-02-14 07:32:25 UTC (rev 8111)
+++ trunk/numpy/ma/core.py	2010-02-14 23:04:18 UTC (rev 8112)
@@ -2875,7 +2875,7 @@
             # Try to reset the shape of the mask (if we don't have a void)
             try:
                 output._mask.shape = output.shape
-            except AttributeError:
+            except (AttributeError, TypeError):
                 pass
         # Make sure to reset the _fill_value if needed
         if getattr(output, '_fill_value', None):



More information about the Numpy-svn mailing list