Catch NotFoundException when getting the user folder

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-02-26 11:20:20 +01:00 committed by backportbot[bot]
parent a19f3536bc
commit 7df5e37750
1 changed files with 2 additions and 3 deletions

View File

@ -53,10 +53,9 @@ class UploadCleanup extends TimedJob {
$uid = $argument['uid']; $uid = $argument['uid'];
$folder = $argument['folder']; $folder = $argument['folder'];
$userFolder = $this->rootFolder->getUserFolder($uid);
$userRoot = $userFolder->getParent();
try { try {
$userFolder = $this->rootFolder->getUserFolder($uid);
$userRoot = $userFolder->getParent();
/** @var Folder $uploads */ /** @var Folder $uploads */
$uploads = $userRoot->get('uploads'); $uploads = $userRoot->get('uploads');
/** @var Folder $uploadFolder */ /** @var Folder $uploadFolder */