diff --git a/lib/FilesHooks.php b/lib/FilesHooks.php index 12a85f745..ce8e90238 100755 --- a/lib/FilesHooks.php +++ b/lib/FilesHooks.php @@ -1334,7 +1334,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;