diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-02-04 12:08:13 +0100 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-02-04 12:08:13 +0100 |
commit | 48d6edb89112bf00eaaa55f4b7d284b68a9ab84f (patch) | |
tree | ba04434d7e6330fb466281cb1b633eb8111cbd45 /numpy/core/arrayprint.py | |
parent | b8bfcd02a2f246a9c23675e1650c3d316d733306 (diff) | |
download | numpy-48d6edb89112bf00eaaa55f4b7d284b68a9ab84f.tar.gz |
BUG: fix incorrect exception handling in arrayprint. Closes ticket 2038.
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index aad83500e..35c82a21d 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -657,7 +657,7 @@ class IntegerFormat(object): max_str_len = max(len(str(maximum.reduce(data, skipna=True))), len(str(minimum.reduce(data, skipna=True)))) self.format = '%' + str(max_str_len) + 'd' - except TypeError, NotImplementedError: + except (TypeError, NotImplementedError): # if reduce(data) fails, this instance will not be called, just # instantiated in formatdict. pass |