mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-03-31 21:32:45 +00:00
TimeoutError is builtin, not exported from regex
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 regex.TimeoutError:
|
||||
except TimeoutError:
|
||||
logger.warning(
|
||||
"Autocomplete word extraction timed out for a text source; skipping.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user