Skip to content

Commit 33b655e

Browse files
fix copy pasta
Don't need to catch WindowsError. That was very silly of me.
1 parent ee54be3 commit 33b655e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def build_triple(self):
315315
try:
316316
ostype = subprocess.check_output(['uname', '-s']).strip().decode(default_encoding)
317317
cputype = subprocess.check_output(['uname', '-m']).strip().decode(default_encoding)
318-
except (subprocess.CalledProcessError, WindowsError):
318+
except subprocess.CalledProcessError:
319319
if sys.platform == 'win32':
320320
return 'x86_64-pc-windows-msvc'
321321
err = "uname not found"

0 commit comments

Comments
 (0)