summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r--numpy/core/arrayprint.py2
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