Avoid crash if VCR+ installers are missing
This commit is contained in:
parent
ebffd2a2dd
commit
e751696307
1 changed files with 5 additions and 1 deletions
|
|
@ -272,7 +272,11 @@ def install_vcredists():
|
||||||
"""Install all supported Visual C++ runtimes."""
|
"""Install all supported Visual C++ runtimes."""
|
||||||
extract_item('_vcredists', silent=True)
|
extract_item('_vcredists', silent=True)
|
||||||
prev_dir = os.getcwd()
|
prev_dir = os.getcwd()
|
||||||
|
try:
|
||||||
os.chdir(r'{BinDir}\_vcredists'.format(**global_vars))
|
os.chdir(r'{BinDir}\_vcredists'.format(**global_vars))
|
||||||
|
except FileNotFoundError:
|
||||||
|
# Ignored since the loop below will report the errors
|
||||||
|
pass
|
||||||
for vcr in VCR_REDISTS:
|
for vcr in VCR_REDISTS:
|
||||||
try_and_print(message=vcr['Name'], function=run_program,
|
try_and_print(message=vcr['Name'], function=run_program,
|
||||||
cmd=vcr['Cmd'], other_results=OTHER_RESULTS)
|
cmd=vcr['Cmd'], other_results=OTHER_RESULTS)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue