Skip to content

Commit 332aac5

Browse files
authored
mkdir parents in update_wiki.py (#2225)
1 parent 6fc3bf0 commit 332aac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tagging/update_wiki.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def update_monthly_wiki_page(
111111
year = year_month[:4]
112112
monthly_page = wiki_dir / "monthly-files" / year / (year_month + ".md")
113113
if not monthly_page.exists():
114-
monthly_page.parent.mkdir(exist_ok=True)
114+
monthly_page.parent.mkdir(parents=True, exist_ok=True)
115115
monthly_page.write_text(MONTHLY_PAGE_HEADER)
116116
LOGGER.info(f"Created monthly page: {monthly_page.relative_to(wiki_dir)}")
117117

0 commit comments

Comments
 (0)