Skip to content

Commit ad88d50

Browse files
Older versions of python 2.7 can raise a WindowsError instead of a subprocess.CalledProcessError when uname does not exist
1 parent 375fa6e commit ad88d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def build_triple(self):
265265
try:
266266
ostype = subprocess.check_output(['uname', '-s']).strip()
267267
cputype = subprocess.check_output(['uname', '-m']).strip()
268-
except subprocess.CalledProcessError:
268+
except (subprocess.CalledProcessError, WindowsError):
269269
if sys.platform == 'win32':
270270
return 'x86_64-pc-windows-msvc'
271271
err = "uname not found"

0 commit comments

Comments
 (0)