gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH-113435)

This commit is contained in:
Serhiy Storchaka 2023-12-24 12:31:23 +02:00 committed by GitHub
parent ce77ee5035
commit 53330f1677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -925,6 +925,8 @@ def collect_windows(info_add):
stderr=subprocess.PIPE,
text=True)
output = proc.communicate()[0]
if proc.returncode == 0xc0000142:
return
if proc.returncode:
output = ""
except OSError: