summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-04-22 20:21:59 +0300
committerGitHub <noreply@github.com>2020-04-22 20:21:59 +0300
commite800a3e08a1cc4cff200e5b837d5e027cc55c82a (patch)
tree5015e2a25d4458c0afdb0304262f1d284e0323c1
parent897431cc9207af9cbc34ce6295dd44256aad5db0 (diff)
parent5bc194706cc8bd6419b5780bedb52c2e8a08d2df (diff)
downloadnumpy-e800a3e08a1cc4cff200e5b837d5e027cc55c82a.tar.gz
Merge pull request #16042 from keremh/fix-exception-raise
ENH: Fix exception causes in build_ext.py
-rw-r--r--numpy/distutils/command/build_ext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py
index 0e07ba9cf..078b8fb59 100644
--- a/numpy/distutils/command/build_ext.py
+++ b/numpy/distutils/command/build_ext.py
@@ -52,8 +52,8 @@ class build_ext (old_build_ext):
if self.parallel:
try:
self.parallel = int(self.parallel)
- except ValueError:
- raise ValueError("--parallel/-j argument must be an integer")
+ except ValueError as e:
+ raise ValueError("--parallel/-j argument must be an integer") from e
# Ensure that self.include_dirs and self.distribution.include_dirs
# refer to the same list object. finalize_options will modify