diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-04-03 12:17:27 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-04-03 23:06:26 +0200 |
commit | fba7bcfcc42bb2f032f2e4c5559fc57353fd43f8 (patch) | |
tree | 0d7ba541a71a0fe53bd1dce216334abb94806f17 /apps/dav | |
parent | 2d0f29f208a20a76fc52cc07dce05f36de8edbb6 (diff) | |
download | nextcloud-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.php | 3 |
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; } |