Skip to content

Commit 15cf6c2

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: catch all exceptions during trashbin cache move
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 5311b80 commit 15cf6c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_trashbin/lib/Trashbin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public static function move2trash($file_path, $ownerOnly = false) {
351351
}
352352
$trashStorage->getUpdater()->update($trashInternalPath, null, $sizeDifference);
353353
}
354-
} catch (CopyRecursiveException $e) {
354+
} catch (\Exception $e) {
355355
$moveSuccessful = false;
356356
if ($trashStorage->file_exists($trashInternalPath)) {
357357
$trashStorage->unlink($trashInternalPath);

0 commit comments

Comments
 (0)