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 committed Nov 26, 2024
1 parent c002890 commit f87f114
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 f87f114

Please sign in to comment.