aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Repair/NC16
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-07-16 08:05:11 +0200
committerGitHub <noreply@github.com>2019-07-16 08:05:11 +0200
commitd0e1bcc1d015ac9bcc63005006ccb64ee0d085c0 (patch)
treef91141d15c9176d8e7566b86accb4f56a6f5e95f /lib/private/Repair/NC16
parent8b31dbc5a4597bca203b56c9ee8dd28ad4446fc4 (diff)
parentcbecc1f8cf84b86ec7a8bb8fe358283f915b7965 (diff)
downloadnextcloud-server-d0e1bcc1d015ac9bcc63005006ccb64ee0d085c0.tar.gz
nextcloud-server-d0e1bcc1d015ac9bcc63005006ccb64ee0d085c0.zip
Merge pull request #15606 from nextcloud/fix/15605/add-catch-for-runtime-exception
Add catch for RuntimeException
Diffstat (limited to 'lib/private/Repair/NC16')
-rw-r--r--lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php b/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php
index c9c7b5cf1c0..f0e5c2b2a1f 100644
--- a/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php
+++ b/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php
@@ -29,6 +29,7 @@ use OCP\IConfig;
use OCP\ILogger;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
+use RuntimeException;
/**
* Class CleanupCardDAVPhotoCache
@@ -65,6 +66,9 @@ class CleanupCardDAVPhotoCache implements IRepairStep {
$folders = $this->appData->getDirectoryListing();
} catch (NotFoundException $e) {
return;
+ } catch (RuntimeException $e) {
+ $this->logger->logException($e, ['message' => 'Failed to fetch directory listing in CleanupCardDAVPhotoCache']);
+ return;
}
$folders = array_filter($folders, function (ISimpleFolder $folder) {