summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/compaq.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/fcompiler/compaq.py')
-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 351a43dd7..01314c136 100644
--- a/numpy/distutils/fcompiler/compaq.py
+++ b/numpy/distutils/fcompiler/compaq.py
@@ -84,9 +84,9 @@ class CompaqVisualFCompiler(FCompiler):
print('Ignoring "%s" (I think it is msvccompiler.py bug)' % (e))
else:
raise
- except IOError as e:
+ except OSError as e:
if not "vcvarsall.bat" in str(e):
- print("Unexpected IOError in", __file__)
+ print("Unexpected OSError in", __file__)
raise
except ValueError as e:
if not "'path'" in str(e):