Skip to content

Commit

Permalink
Gracefully handle exception
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
  • Loading branch information
LukasReschke committed Dec 7, 2016
1 parent 719aed2 commit 58134ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/WOPI/DiscoveryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function get() {
return $decodedFile['data'];
}
} catch (NotFoundException $e) {
$file = $this->appData->newFile('discovery.xml');
}

$remoteHost = $this->config->getAppValue('richdocuments', 'wopi_url');
Expand Down

0 comments on commit 58134ab

Please sign in to comment.