fix: Do not throw if appstore is unavailable during upgrade

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2024-08-16 18:21:42 +02:00 committed by skjnldsv
parent 7efd244956
commit 3ca7480829

View file

@ -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 = [];