mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-23 05:42:37 +00:00
TimeoutError is builtin, not exported from regex
This commit is contained in:
1 parent
1e1bba1a15
commit
1000c47d86
1 file changed
+1
-1
@@ -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