diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-04-03 12:17:27 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-04-06 16:47:54 +0000 |
commit | 1db2efe8056ced5187d3b0e5aa9f6d669b72ff5b (patch) | |
tree | 032c99387cb0149c6a7957f3250923795090ea30 /apps/dav | |
parent | 0401c350e670e652593c208fa20fe3cdb20a1b97 (diff) | |
download | nextcloud-server-1db2efe8056ced5187d3b0e5aa9f6d669b72ff5b.tar.gz nextcloud-server-1db2efe8056ced5187d3b0e5aa9f6d669b72ff5b.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 2e6d6edf088..af63c458634 100644 --- a/apps/dav/lib/BackgroundJob/UploadCleanup.php +++ b/apps/dav/lib/BackgroundJob/UploadCleanup.php @@ -26,6 +26,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; } |