diff --git a/src/Appwrite/Locking/Lock.php b/src/Appwrite/Locking/Lock.php index 38e034b220..6390a4a4be 100644 --- a/src/Appwrite/Locking/Lock.php +++ b/src/Appwrite/Locking/Lock.php @@ -129,7 +129,7 @@ final class Lock try { $acquired = $orFail ? $lock->acquire($waitTimeout) : $lock->tryAcquire(); - } catch (Throwable $e) { + } catch (\RedisException $e) { $this->attempts->add(1, ['outcome' => 'backend_error', ...$labels]); $this->reportError('backend_error', $key, $target, $e);