diff --git a/apps/dav/lib/BackgroundJob/UploadCleanup.php b/apps/dav/lib/BackgroundJob/UploadCleanup.php index 42262b9dc2..0cb3e613dc 100644 --- a/apps/dav/lib/BackgroundJob/UploadCleanup.php +++ b/apps/dav/lib/BackgroundJob/UploadCleanup.php @@ -53,10 +53,9 @@ class UploadCleanup extends TimedJob { $uid = $argument['uid']; $folder = $argument['folder']; - $userFolder = $this->rootFolder->getUserFolder($uid); - $userRoot = $userFolder->getParent(); - try { + $userFolder = $this->rootFolder->getUserFolder($uid); + $userRoot = $userFolder->getParent(); /** @var Folder $uploads */ $uploads = $userRoot->get('uploads'); /** @var Folder $uploadFolder */