From 5bc194706cc8bd6419b5780bedb52c2e8a08d2df Mon Sep 17 00:00:00 2001 From: keremh Date: Wed, 22 Apr 2020 17:38:09 +0300 Subject: ENH: Fix exception causes in build_ext.py --- numpy/distutils/command/build_ext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/distutils/command') 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 -- cgit v1.2.1