Skip to content

Commit 2904ec2

Browse files
authored
pythongh-130878: Add extra check to prepare_ssl.py (pythonGH-130879)
1 parent 4f62189 commit 2904ec2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PCbuild/prepare_ssl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def copy_includes(makefile, suffix):
7070
try:
7171
os.makedirs(dir)
7272
except OSError:
73-
pass
73+
if not os.path.isdir(dir):
74+
raise
7475
copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl'
7576
with open(makefile) as fin:
7677
for line in fin:

0 commit comments

Comments
 (0)