summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lamparski <diagonaldevice@gmail.com>2021-03-03 18:46:17 -0500
committerGitHub <noreply@github.com>2021-03-03 18:46:17 -0500
commit4b914538a2fbabe1715493f325ad930735e025c9 (patch)
tree1d3e4bd82183e7fe984103959f9acc6e7ba6138f
parentf691b02c42cd27036344795d837cf8b5cf2b571e (diff)
downloadnumpy-4b914538a2fbabe1715493f325ad930735e025c9.tar.gz
BUG: NameError in numpy.distutils.fcompiler.compaq
Fix a simple mistake in commit da0497fdf35 which can produce a NameError when installing numpy in MinGW/MSYS2.
-rw-r--r--numpy/distutils/fcompiler/compaq.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/fcompiler/compaq.py b/numpy/distutils/fcompiler/compaq.py
index 6ce590c7c..1a356866a 100644
--- a/numpy/distutils/fcompiler/compaq.py
+++ b/numpy/distutils/fcompiler/compaq.py
@@ -80,8 +80,8 @@ class CompaqVisualFCompiler(FCompiler):
except DistutilsPlatformError:
pass
except AttributeError as e:
- if '_MSVCCompiler__root' in str(msg):
- print('Ignoring "%s" (I think it is msvccompiler.py bug)' % (msg))
+ if '_MSVCCompiler__root' in str(e):
+ print('Ignoring "%s" (I think it is msvccompiler.py bug)' % (e))
else:
raise
except IOError as e: