summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-04-03 12:17:27 +0200
committerJulius Härtl <jus@bitgrid.net>2020-04-03 23:06:26 +0200
commitfba7bcfcc42bb2f032f2e4c5559fc57353fd43f8 (patch)
tree0d7ba541a71a0fe53bd1dce216334abb94806f17 /apps/dav
parent2d0f29f208a20a76fc52cc07dce05f36de8edbb6 (diff)
downloadnextcloud-server-fba7bcfcc42bb2f032f2e4c5559fc57353fd43f8.tar.gz
nextcloud-server-fba7bcfcc42bb2f032f2e4c5559fc57353fd43f8.zip
Catch NoUserException when running the upload cleanup as cronjob
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dav')
-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;
}