summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeremh <hallackerem@gmail.com>2020-04-22 17:38:09 +0300
committerkeremh <hallackerem@gmail.com>2020-04-22 17:38:09 +0300
commit5bc194706cc8bd6419b5780bedb52c2e8a08d2df (patch)
tree5015e2a25d4458c0afdb0304262f1d284e0323c1
parent897431cc9207af9cbc34ce6295dd44256aad5db0 (diff)
downloadnumpy-5bc194706cc8bd6419b5780bedb52c2e8a08d2df.tar.gz
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