]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-130878: Add extra check to prepare_ssl.py (GH-130879)
authorBurkov Egor <eburkov@rvision.ru>
Wed, 5 Mar 2025 17:08:30 +0000 (20:08 +0300)
committerGitHub <noreply@github.com>
Wed, 5 Mar 2025 17:08:30 +0000 (17:08 +0000)
PCbuild/prepare_ssl.py

index 0f3c63ee24ffba080ff7a0aeb524fe4dacaa120a..0461167e0d2cd6201fd6b81fecef9fee3804a535 100755 (executable)
@@ -70,7 +70,8 @@ def copy_includes(makefile, suffix):
     try:
         os.makedirs(dir)
     except OSError:
-        pass
+        if not os.path.isdir(dir):
+            raise
     copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl'
     with open(makefile) as fin:
         for line in fin: