mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-05-16 11:35:24 +00:00
Also no cover this defensive TimeoutError
This commit is contained in:
@@ -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.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user