diff options
author | cookedm <cookedm@localhost> | 2006-07-10 23:00:58 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-07-10 23:00:58 +0000 |
commit | b4ca1e1eb0d04dac6f6ab544ceff8e2333f8fd12 (patch) | |
tree | eff6e717bdd2be197e639e5469ff5c8b44bfce7f /numpy/lib/index_tricks.py | |
parent | 18ceceaa97fd7e1b8a97dad1b4c5ebdd0756cf68 (diff) | |
download | numpy-b4ca1e1eb0d04dac6f6ab544ceff8e2333f8fd12.tar.gz |
replace some bare except:'s
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r-- | numpy/lib/index_tricks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 6f06bab78..a0900c845 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -238,7 +238,7 @@ class concatenator(object): try: self.axis = int(key[k]) continue - except: + except (ValueError, TypeError): raise ValueError, "unknown special directive" elif type(key[k]) in ScalarType: newobj = asarray([key[k]]) |