Log RuntimeException in CleanupCardDAVPhotoCache

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2019-07-15 22:26:08 +02:00 committed by Backportbot
parent c208ea49d4
commit f7a6f4527e
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}