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: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 27, 2024
1 parent dbebbbd commit a6dd69c
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 @@ -35,7 +35,6 @@
use OCP\Files\GenericFileException;
use OCP\Files\IRootFolder;
use OCP\Files\NotPermittedException;
use OCP\Files\StorageNotAvailableException;
use OCP\IConfig;
use OCP\Lock\LockedException;
use Psr\Log\LoggerInterface;
Expand Down Expand Up @@ -117,7 +116,7 @@ public function propFind(PropFind $propFind, INode $node) {
/** @var File $file */
try {
$file = $this->workspaceService->getFile($nodes[0]);
} catch (StorageNotAvailableException $e) {
} catch (\Exception $e) {
// If a storage is not available we can for the propfind response assume that there is no rich workspace present
}
}
Expand Down

0 comments on commit a6dd69c

Please sign in to comment.