aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2024-08-16 18:21:42 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-09-04 09:31:13 +0200
commit3ca748082945bc5ea7866b96cceeb82c8c7839a2 (patch)
tree455e412bda85481421c776886c5648c12abd4c37 /lib
parent7efd244956a66835ba0faa42e4d4bfa3a03b3d0d (diff)
downloadnextcloud-server-3ca748082945bc5ea7866b96cceeb82c8c7839a2.tar.gz
nextcloud-server-3ca748082945bc5ea7866b96cceeb82c8c7839a2.zip
fix: Do not throw if appstore is unavailable during upgrade
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/App/AppStore/Fetcher/Fetcher.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php
index ad76befc5fa..28252f264c3 100644
--- a/lib/private/App/AppStore/Fetcher/Fetcher.php
+++ b/lib/private/App/AppStore/Fetcher/Fetcher.php
@@ -86,7 +86,8 @@ abstract class Fetcher {
$response = $client->get($this->getEndpoint(), $options);
} catch (ConnectException $e) {
$this->config->setAppValue('settings', 'appstore-fetcher-lastFailure', (string)time());
- throw $e;
+ $this->logger->error('Failed to connect to the app store', ['exception' => $e]);
+ return [];
}
$responseJson = [];