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
parent b693487d64
commit cbecc1f8cf
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
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;
}