diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2021-03-06 20:45:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-06 20:45:22 +0100 |
commit | dcf580482569352275acff282fa0548fbc12042e (patch) | |
tree | 6fb54880d3e168e6e2fdcc2bad56c58e3d3a032a | |
parent | 6222e283fa0b8fb9ba562dabf6ca9ea7ed65be39 (diff) | |
parent | 4b914538a2fbabe1715493f325ad930735e025c9 (diff) | |
download | numpy-dcf580482569352275acff282fa0548fbc12042e.tar.gz |
Merge pull request #18539 from ExpHP/patch-1
BUG: NameError in numpy.distutils.fcompiler.compaq
-rw-r--r-- | numpy/distutils/fcompiler/compaq.py | 4 |
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: |