Skip to content

Commit

Permalink
fix portability issue in error handling of build_triple
Browse files Browse the repository at this point in the history
  • Loading branch information
binarycrusader committed Feb 12, 2017
1 parent 4a618fe commit 3807e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def build_triple(self):
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"
Expand Down

0 comments on commit 3807e1f

Please sign in to comment.