summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-04-22 10:28:31 +0300
committerGitHub <noreply@github.com>2020-04-22 10:28:31 +0300
commitcf7b712691a960cbcd6a744350c83a95f8d0154e (patch)
tree133e67643045ba769ab741b3cfe72d81b23d6567
parentb5ba51c50f57caf5fb086a7d722f0817209d545e (diff)
parent69dff1a33babd996496213afbb8080823c8d5bdd (diff)
downloadnumpy-cf7b712691a960cbcd6a744350c83a95f8d0154e.tar.gz
Merge pull request #16032 from keremh/fix-exception-raise
ENH: Fix exception causes in build_clib.py
-rw-r--r--numpy/distutils/command/build_clib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/command/build_clib.py b/numpy/distutils/command/build_clib.py
index d679b2d03..f6a84e351 100644
--- a/numpy/distutils/command/build_clib.py
+++ b/numpy/distutils/command/build_clib.py
@@ -49,8 +49,8 @@ class build_clib(old_build_clib):
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
old_build_clib.finalize_options(self)
self.set_undefined_options('build',
('parallel', 'parallel'),