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

(cherry picked from commit 53330f1677)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-12-24 11:47:54 +01:00 committed by GitHub
parent d04ca4ccd7
commit 88cc19b530
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -924,6 +924,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: