From 1000c47d868c814bb4d02fafb14efde9972af786 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 31 Mar 2026 08:02:58 -0700 Subject: [PATCH] TimeoutError is builtin, not exported from regex --- src/documents/search/_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/search/_backend.py b/src/documents/search/_backend.py index 77b969290..a0c88f24c 100644 --- a/src/documents/search/_backend.py +++ b/src/documents/search/_backend.py @@ -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 regex.TimeoutError: + except TimeoutError: logger.warning( "Autocomplete word extraction timed out for a text source; skipping.", )