Skip to content

Commit 3807e1f

Browse files
fix portability issue in error handling of build_triple
1 parent 4a618fe commit 3807e1f

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
@@ -315,7 +315,7 @@ def build_triple(self):
315315
try:
316316
ostype = subprocess.check_output(['uname', '-s']).strip().decode(default_encoding)
317317
cputype = subprocess.check_output(['uname', '-m']).strip().decode(default_encoding)
318-
except subprocess.CalledProcessError:
318+
except (subprocess.CalledProcessError, OSError):
319319
if sys.platform == 'win32':
320320
return 'x86_64-pc-windows-msvc'
321321
err = "uname not found"

0 commit comments

Comments
 (0)