From: Sebastián Ramírez Date: Fri, 9 Aug 2024 15:52:41 +0000 (-0500) Subject: 🐛 Fix deploy docs previews script to handle mkdocs.yml files (#11984) X-Git-Tag: 0.112.1~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b6d9ba7898a130e7e3b2ce59d3a84c4476f7142;p=thirdparty%2Ffastapi%2Ffastapi.git 🐛 Fix deploy docs previews script to handle mkdocs.yml files (#11984) --- diff --git a/scripts/deploy_docs_status.py b/scripts/deploy_docs_status.py index ef33fe43d9..19dffbcb9a 100644 --- a/scripts/deploy_docs_status.py +++ b/scripts/deploy_docs_status.py @@ -63,7 +63,8 @@ def main(): lang_links: dict[str, list[str]] = {} for f in docs_files: match = re.match(r"docs/([^/]+)/docs/(.*)", f.filename) - assert match + if not match: + continue lang = match.group(1) path = match.group(2) if path.endswith("index.md"):