Also no cover this defensive TimeoutError

This commit is contained in:
Trenton H
2026-03-31 08:06:38 -07:00
parent 1000c47d86
commit 977d41f3aa
+1 -1
View File
@@ -68,7 +68,7 @@ def _extract_autocomplete_words(text_sources: list[str]) -> set[str]:
continue
try:
tokens = _WORD_RE.findall(text, timeout=_AUTOCOMPLETE_REGEX_TIMEOUT)
except TimeoutError:
except TimeoutError: # pragma: no cover
logger.warning(
"Autocomplete word extraction timed out for a text source; skipping.",
)