Skip to content

Commit

Permalink
Older versions of python 2.7 can raise a WindowsError instead of a su…
Browse files Browse the repository at this point in the history
…bprocess.CalledProcessError when `uname` does not exist
  • Loading branch information
CensoredUsername committed Jul 1, 2016
1 parent 375fa6e commit ad88d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/bootstrap.py
Expand Up @@ -265,7 +265,7 @@ def build_triple(self):
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"
Expand Down

0 comments on commit ad88d50

Please sign in to comment.