Skip to content

Commit

Permalink
Merge pull request #6705 from nextcloud/backport/6699/stable30
Browse files Browse the repository at this point in the history
[stable30] fix: catch all errors when getting rich workspace file
  • Loading branch information
mejo- authored Nov 27, 2024
2 parents fded83b + 3d0f461 commit c9de626
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 c9de626

Please sign in to comment.