Merge pull request #20336 from nextcloud/backport/19655/stable17
[stable17] Catch NotFoundException when getting the user folder
This commit is contained in:
commit
4a92a22d14
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue