From 7ad8ea7b11e3544b133d8b397dd3bbe4833d3308 Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Thu, 2 Sep 2021 21:32:21 +1200 Subject: MAINT: revise OSError aliases (IOError, EnvironmentError) --- numpy/distutils/exec_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/distutils/exec_command.py') diff --git a/numpy/distutils/exec_command.py b/numpy/distutils/exec_command.py index fb10d2470..79998cf5d 100644 --- a/numpy/distutils/exec_command.py +++ b/numpy/distutils/exec_command.py @@ -284,7 +284,7 @@ def _exec_command(command, use_shell=None, use_tee = None, **env): stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=False) - except EnvironmentError: + except OSError: # Return 127, as os.spawn*() and /bin/sh do return 127, '' -- cgit v1.2.1