summaryrefslogtreecommitdiff
path: root/numpy/distutils/unixccompiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/unixccompiler.py')
-rw-r--r--numpy/distutils/unixccompiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/unixccompiler.py b/numpy/distutils/unixccompiler.py
index 0cd2d243e..fb91f1789 100644
--- a/numpy/distutils/unixccompiler.py
+++ b/numpy/distutils/unixccompiler.py
@@ -54,7 +54,7 @@ def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts
extra_postargs, display = display)
except DistutilsExecError as e:
msg = str(e)
- raise CompileError(msg)
+ raise CompileError(msg) from None
# add commandline flags to dependency file
if deps:
@@ -131,7 +131,7 @@ def UnixCCompiler_create_static_lib(self, objects, output_libname,
display = display)
except DistutilsExecError as e:
msg = str(e)
- raise LibError(msg)
+ raise LibError(msg) from None
else:
log.debug("skipping %s (up-to-date)", output_filename)
return