summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2024-09-04 11:33:51 +0200
committerGitHub <noreply@github.com>2024-09-04 11:33:51 +0200
commit14197c1a8400f971fba7b765303b22719143b662 (patch)
tree400f9266d71ee3ef76e2d562ec9f8a9faa6dc7d4
parent891466842739d02a93cd2cf9869b19274b5490d8 (diff)
parentc726b2f8f6f092438af7061253af90c2262bb12c (diff)
downloadnextcloud-server-14197c1a8400f971fba7b765303b22719143b662.tar.gz
nextcloud-server-14197c1a8400f971fba7b765303b22719143b662.zip
Merge pull request #47726 from nextcloud/backport/47285/stable30
[stable30] fix: Do not throw if appstore is unavailable during upgrade
-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 = [];