diff options
| author | Shawn Walker-Salas <shawn.walker@oracle.com> | 2017-02-12 11:24:06 -0800 |
|---|---|---|
| committer | Shawn Walker-Salas <shawn.walker@oracle.com> | 2017-02-12 11:25:00 -0800 |
| commit | 3807e1f393e3022dcf686e2109eda1fb34eb22c9 (patch) | |
| tree | 2611cb7d7e851b4b5b998230651a614965045698 | |
| parent | 4a618fee1efc279d8fe2386f3c74b7e3f3265aa8 (diff) | |
| download | rust-3807e1f393e3022dcf686e2109eda1fb34eb22c9.tar.gz rust-3807e1f393e3022dcf686e2109eda1fb34eb22c9.zip | |
fix portability issue in error handling of build_triple
| -rw-r--r-- | src/bootstrap/bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
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" |
