From 3807e1f393e3022dcf686e2109eda1fb34eb22c9 Mon Sep 17 00:00:00 2001 From: Shawn Walker-Salas Date: Sun, 12 Feb 2017 11:24:06 -0800 Subject: [PATCH] fix portability issue in error handling of build_triple --- src/bootstrap/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index a632a82bf7d..caf2402f40c 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -315,7 +315,7 @@ class RustBuild(object): try: ostype = subprocess.check_output(['uname', '-s']).strip().decode(default_encoding) cputype = subprocess.check_output(['uname', '-m']).strip().decode(default_encoding) - except subprocess.CalledProcessError: + except (subprocess.CalledProcessError, OSError): if sys.platform == 'win32': return 'x86_64-pc-windows-msvc' err = "uname not found"