diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php index 39532a827b6..cf90f85cfa3 100644 --- a/apps/files_trashbin/lib/Trashbin.php +++ b/apps/files_trashbin/lib/Trashbin.php @@ -355,7 +355,7 @@ class Trashbin implements IEventListener { } $trashStorage->getUpdater()->update($trashInternalPath, null, $sizeDifference); } - } catch (CopyRecursiveException $e) { + } catch (\Exception $e) { $moveSuccessful = false; if ($trashStorage->file_exists($trashInternalPath)) { $trashStorage->unlink($trashInternalPath);