build: ignore python utf-8 parsing errors when finding vs lastest dir

Change-Id: Ia03ace8826ac44820c621c9ff2ee1a99b26bbf1b
This commit is contained in:
Ming Rui Zhang
2019-12-10 11:29:59 -05:00
committed by Andreas Traczyk
parent fb09e1a7f2
commit 8599bcdd23

View File

@ -81,7 +81,7 @@ def findVSLatestDir():
'-property installationPath'
]
cmd = [vs_where_path] + args
output = subprocess.check_output(' '.join(cmd)).decode('utf-8')
output = subprocess.check_output(' '.join(cmd)).decode('utf-8', errors='ignore')
if output:
return output.splitlines()[0]
else: