]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🐛 Fix deploy docs previews script to handle mkdocs.yml files (#11984)
authorSebastián Ramírez <tiangolo@gmail.com>
Fri, 9 Aug 2024 15:52:41 +0000 (10:52 -0500)
committerGitHub <noreply@github.com>
Fri, 9 Aug 2024 15:52:41 +0000 (10:52 -0500)
scripts/deploy_docs_status.py

index ef33fe43d940443b030b872dcec2907178fd2e32..19dffbcb9ae9042e8f7447ecc0daadd774c69660 100644 (file)
@@ -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"):