Gracefully handle exception

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2016-12-07 09:18:25 +01:00
parent 719aed23f6
commit 58134ab0a2
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1

View File

@ -73,6 +73,7 @@ class DiscoveryManager {
return $decodedFile['data'];
}
} catch (NotFoundException $e) {
$file = $this->appData->newFile('discovery.xml');
}
$remoteHost = $this->config->getAppValue('richdocuments', 'wopi_url');