From 7df5e37750b369ec844b78220386cae2461223b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 26 Feb 2020 11:20:20 +0100 Subject: [PATCH] Catch NotFoundException when getting the user folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dav/lib/BackgroundJob/UploadCleanup.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 */