diff options
author | sasha <sasha@localhost> | 2006-01-08 14:50:54 +0000 |
---|---|---|
committer | sasha <sasha@localhost> | 2006-01-08 14:50:54 +0000 |
commit | c1cdece490e054bad809f4ca5817930944d99541 (patch) | |
tree | 633a72107933ff58774ce8d5b1dbb1dde047cae5 /numpy/core/ma.py | |
parent | 0a6b8e4fcb3573c66416c8e6fb53814f73b328ec (diff) | |
download | numpy-c1cdece490e054bad809f4ca5817930944d99541.tar.gz |
Fixed a failure in test_ma reported by Nils Wagner
See http://aspn.activestate.com/ASPN/Mail/Message/scipy-dev/2969615
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) |