From f87f1141c56c938449db54cc7003c8142c113dce Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 26 Nov 2024 16:43:58 +0100 Subject: [PATCH] fix: catch all errors when getting rich workspace file Signed-off-by: Robin Appelman --- lib/DAV/WorkspacePlugin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/DAV/WorkspacePlugin.php b/lib/DAV/WorkspacePlugin.php index 4f5461054b9..52287825ca8 100644 --- a/lib/DAV/WorkspacePlugin.php +++ b/lib/DAV/WorkspacePlugin.php @@ -17,7 +17,6 @@ use OCP\Files\GenericFileException; use OCP\Files\IRootFolder; use OCP\Files\NotPermittedException; -use OCP\Files\StorageNotAvailableException; use OCP\ICacheFactory; use OCP\IConfig; use OCP\Lock\LockedException; @@ -82,7 +81,7 @@ public function propFind(PropFind $propFind, INode $node) { $node = $node->getNode(); try { $file = $this->workspaceService->getFile($node); - } catch (StorageNotAvailableException $e) { + } catch (\Exception $e) { $file = null; }