Log RuntimeException in CleanupCardDAVPhotoCache

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/15606/head
Morris Jobke 7 years ago
parent b693487d64
commit cbecc1f8cf
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 5
      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;
}

Loading…
Cancel
Save