mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-23 05:42:37 +00:00
And the filelock one, this is defensive stuff I don't see value in
This commit is contained in:
1 parent
977d41f3aa
commit
25e905395c
1 file changed
+1
-1
@@ -160,7 +160,7 @@ class WriteBatch:
|
||||
self._lock = filelock.FileLock(str(lock_path))
|
||||
try:
|
||||
self._lock.acquire(timeout=self._lock_timeout)
|
||||
except filelock.Timeout as e:
|
||||
except filelock.Timeout as e: # pragma: no cover
|
||||
raise SearchIndexLockError(
|
||||
f"Could not acquire index lock within {self._lock_timeout}s",
|
||||
) from e
|
||||
|
||||
Reference in new issue
Block a user