diff --git a/lib/FilesHooks.php b/lib/FilesHooks.php index cd85465e3..11d1d1b67 100644 --- a/lib/FilesHooks.php +++ b/lib/FilesHooks.php @@ -1398,7 +1398,7 @@ private function getUnrelatedUsers(int $fileId, array $cachedMounts): array { if ($node->isReadable()) { continue; // overkill ? as rootFolder->get() would throw an exception if file is not available } - } catch (\Exception $e) { + } catch (\Throwable $e) { } $filteredUsers[] = $userId;