diff options
author | keremh <hallackerem@gmail.com> | 2020-04-21 18:49:51 +0300 |
---|---|---|
committer | keremh <hallackerem@gmail.com> | 2020-04-21 18:49:51 +0300 |
commit | 69dff1a33babd996496213afbb8080823c8d5bdd (patch) | |
tree | 8270ddcda62c2ead62358efcb99d234bbafffc85 /numpy/distutils/command/build_clib.py | |
parent | 9eb7560e77c43af561f5242cf30df6b1d7442e83 (diff) | |
download | numpy-69dff1a33babd996496213afbb8080823c8d5bdd.tar.gz |
ENH: Fix exception causes in build_clib.py
Diffstat (limited to 'numpy/distutils/command/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'), |