Skip to content

Commit

Permalink
Merge pull request #6699 from nextcloud/dav-plugin-catch-more
Browse files Browse the repository at this point in the history
fix: catch all errors when getting rich workspace file
  • Loading branch information
mejo- authored Nov 27, 2024
2 parents 7137e81 + f87f114 commit e96ddb4
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 e96ddb4

Please sign in to comment.