summaryrefslogtreecommitdiff
path: root/numpy/linalg/lapack_lite
diff options
context:
space:
mode:
authortautaus <sunt9751@gmail.com>2021-01-31 21:56:46 -0500
committertautaus <sunt9751@gmail.com>2021-01-31 21:56:46 -0500
commitb62ffc5a3584f6f946b7fbc37336d2cd63ea943d (patch)
tree864ab17047d21fc302780cd0c3675e21325dec8e /numpy/linalg/lapack_lite
parentf55f5d45518c2f83271330041b982e55dcd6bbf9 (diff)
downloadnumpy-b62ffc5a3584f6f946b7fbc37336d2cd63ea943d.tar.gz
See #15986. Chain exceptions in linalg
Diffstat (limited to 'numpy/linalg/lapack_lite')
-rwxr-xr-xnumpy/linalg/lapack_lite/make_lite.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/linalg/lapack_lite/make_lite.py b/numpy/linalg/lapack_lite/make_lite.py
index cf15b2541..b145f6c4f 100755
--- a/numpy/linalg/lapack_lite/make_lite.py
+++ b/numpy/linalg/lapack_lite/make_lite.py
@@ -261,8 +261,8 @@ def runF2C(fortran_filename, output_dir):
subprocess.check_call(
["f2c"] + F2C_ARGS + ['-d', output_dir, fortran_filename]
)
- except subprocess.CalledProcessError:
- raise F2CError
+ except subprocess.CalledProcessError as e:
+ raise F2CError from e
def scrubF2CSource(c_file):
with open(c_file) as fo: