summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-15 22:26:08 +0200
committerMorris Jobke <hey@morrisjobke.de>2019-07-15 22:26:08 +0200
commitcbecc1f8cf84b86ec7a8bb8fe358283f915b7965 (patch)
treef60cf9c5683417f85352cf7a282da37958e916ce /lib/private/Repair
parentb693487d64f088969e94ade99cfab8bd3dd7d6b0 (diff)
downloadnextcloud-server-cbecc1f8cf84b86ec7a8bb8fe358283f915b7965.tar.gz
nextcloud-server-cbecc1f8cf84b86ec7a8bb8fe358283f915b7965.zip
Log RuntimeException in CleanupCardDAVPhotoCache
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Repair')
-rw-r--r--lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php b/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php
index 92ffcb54742..f0e5c2b2a1f 100644
--- a/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php
+++ b/lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php
@@ -64,7 +64,10 @@ class CleanupCardDAVPhotoCache implements IRepairStep {
private function repair(IOutput $output): void {
try {
$folders = $this->appData->getDirectoryListing();
- } catch (NotFoundException|RuntimeException $e) {
+ } catch (NotFoundException $e) {
+ return;
+ } catch (RuntimeException $e) {
+ $this->logger->logException($e, ['message' => 'Failed to fetch directory listing in CleanupCardDAVPhotoCache']);
return;
}