summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-04-04 10:25:53 +0200
committerGitHub <noreply@github.com>2020-04-04 10:25:53 +0200
commit5c6f9ca278eaf7c097b3d454961d5a123a5644a4 (patch)
tree1e9217f9b269f79d29094a7b217918256e038682 /apps
parent3a0b70696cbc6596d489fc85979491950bd0c95e (diff)
parent56aa8fd0355879fed339e499b6c679d4cffd0913 (diff)
downloadnextcloud-server-5c6f9ca278eaf7c097b3d454961d5a123a5644a4.tar.gz
nextcloud-server-5c6f9ca278eaf7c097b3d454961d5a123a5644a4.zip
Merge pull request #20284 from nextcloud/bugfix/noid/catch-no-user-in-cron
Properly catch NoUserException during upload cleanup
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/BackgroundJob/UploadCleanup.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/BackgroundJob/UploadCleanup.php b/apps/dav/lib/BackgroundJob/UploadCleanup.php
index 484d0b4d79b..cd88ed4ab1e 100644
--- a/apps/dav/lib/BackgroundJob/UploadCleanup.php
+++ b/apps/dav/lib/BackgroundJob/UploadCleanup.php
@@ -27,6 +27,7 @@ declare(strict_types=1);
namespace OCA\DAV\BackgroundJob;
+use OC\User\NoUserException;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJobList;
use OCP\BackgroundJob\TimedJob;
@@ -63,7 +64,7 @@ class UploadCleanup extends TimedJob {
$uploads = $userRoot->get('uploads');
/** @var Folder $uploadFolder */
$uploadFolder = $uploads->get($folder);
- } catch (NotFoundException $e) {
+ } catch (NotFoundException|NoUserException $e) {
$this->jobList->remove(self::class, $argument);
return;
}