docs: fix language_models docstring (#26268)

This commit is contained in:
Bagatur
2024-09-10 10:41:28 -07:00
committed by GitHub
parent 301be2d40a
commit 162d3ff54b
2 changed files with 8 additions and 3 deletions

View File

@@ -17,7 +17,10 @@ def process_toc_h3_elements(html_content: str) -> str:
# Process each element
for element in toc_h3_elements:
element = element.a.code.span
try:
element = element.a.code.span
except Exception:
continue
# Get the text content of the element
content = element.get_text()