Skip to content

Commit 7eee6b2

Browse files
committed
fix building for OpenSSL_1_0_2-stable
1 parent 1ed9ed3 commit 7eee6b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hooks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ def on_post_build(config: MkDocsConfig):
161161
template = '<!DOCTYPE html><html lang="en"><head><meta name="robots" content="noindex"><meta charset="utf-8"><meta http-equiv="refresh" content="0; url={}"></head></html>'
162162
for redirect_page_uri, source_page_uri in REDIRECT_PAGES.items():
163163
path = Path(redirect_page_uri)
164-
os.makedirs(path)
164+
try:
165+
os.makedirs(path)
166+
except FileExistsError:
167+
continue
165168
index_html = path / "index.html"
166169
index_html.write_text(template.format(source_page_uri))

0 commit comments

Comments
 (0)