Skip to content

Commit 84498b0

Browse files
wandrewjamBvB93
andauthored
MAINT: raise from previous exception in make_lite.py
Co-authored-by: Bas van Beek <[email protected]>
1 parent 5a42312 commit 84498b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/linalg/lapack_lite/make_lite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ def scrubF2CSource(c_file):
275275
def ensure_executable(name):
276276
try:
277277
which(name)
278-
except Exception:
279-
raise SystemExit(name + ' not found')
278+
except Exception as ex:
279+
raise SystemExit(name + ' not found') from ex
280280

281281
def create_name_header(output_dir):
282282
routine_re = re.compile(r'^ (subroutine|.* function)\s+(\w+)\(.*$',

0 commit comments

Comments
 (0)