diff options
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r-- | numpy/core/ma.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py index b4467bf73..af3cc69e4 100644 --- a/numpy/core/ma.py +++ b/numpy/core/ma.py @@ -1219,7 +1219,7 @@ array(data = %(data)s, try: result = numeric.array(d, dtype=d.dtype, copy=1) result[m] = value - except (TypeError, AttributeError): + except (TypeError, AttributeError, ValueError): #ok, can't put that value in here value = numeric.array(value, dtype=object) d = d.astype(object) |