Skip to content

Commit

Permalink
fix: catch all errors when getting rich workspace file
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and backportbot[bot] committed Nov 27, 2024
1 parent fded83b commit 3d0f461
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/DAV/WorkspacePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 3d0f461

Please sign in to comment.