Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-12-07 11:14:33 +0300
committerLukas Reschke <lukas@statuscode.ch>2016-12-07 11:14:33 +0300
commitcb8e416343e0749d4b26a72d86a11482b715245b (patch)
treeb56834de74a11ce54bb6ad6708be67109e8a3d59 /lib
parentca9298da35c87d2fb9e26682b8c17e2ccc317920 (diff)
Catch exceptions
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/WOPI/DiscoveryManager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/WOPI/DiscoveryManager.php b/lib/WOPI/DiscoveryManager.php
index c3997fe7..1e81223b 100644
--- a/lib/WOPI/DiscoveryManager.php
+++ b/lib/WOPI/DiscoveryManager.php
@@ -96,6 +96,8 @@ class DiscoveryManager {
}
public function refretch() {
- $this->appData->getFile('discovery.xml')->delete();
+ try {
+ $this->appData->getFile('discovery.xml')->delete();
+ } catch(\Exception $e) {}
}
}