diff options
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/records.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/records.py b/numpy/core/records.py index a1439f9df..a1cad9075 100644 --- a/numpy/core/records.py +++ b/numpy/core/records.py @@ -496,8 +496,7 @@ class recarray(ndarray): except Exception: fielddict = ndarray.__getattribute__(self, 'dtype').fields or {} if attr not in fielddict: - exctype, value = sys.exc_info()[:2] - raise exctype(value) + raise else: fielddict = ndarray.__getattribute__(self, 'dtype').fields or {} if attr not in fielddict: |