about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCensoredUsername <cens.username@gmail.com>2016-07-01 18:22:24 +0200
committerCensoredUsername <cens.username@gmail.com>2016-07-01 18:36:28 +0200
commitad88d50fba26c653f592be6a5032a33a0c35d276 (patch)
tree6536fdb2dcd0e93d5c1682ad60215b2baca559d5
parent375fa6ef371a0ae248968d363226101ef741127e (diff)
Older versions of python 2.7 can raise a WindowsError instead of a subprocess.CalledProcessError when `uname` does not exist
-rw-r--r--src/bootstrap/bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 7b0a5d6b6df..9606a741cc0 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -265,7 +265,7 @@ class RustBuild:
         try:
             ostype = subprocess.check_output(['uname', '-s']).strip()
             cputype = subprocess.check_output(['uname', '-m']).strip()
-        except subprocess.CalledProcessError:
+        except (subprocess.CalledProcessError, WindowsError):
             if sys.platform == 'win32':
                 return 'x86_64-pc-windows-msvc'
             err = "uname not found"