diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-04-22 10:28:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 10:28:31 +0300 |
commit | cf7b712691a960cbcd6a744350c83a95f8d0154e (patch) | |
tree | 133e67643045ba769ab741b3cfe72d81b23d6567 | |
parent | b5ba51c50f57caf5fb086a7d722f0817209d545e (diff) | |
parent | 69dff1a33babd996496213afbb8080823c8d5bdd (diff) | |
download | numpy-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.py | 4 |
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'), |