fix: Do not throw if appstore is unavailable during upgrade

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/47285/head
Julius Härtl 1 year ago committed by skjnldsv
parent 7efd244956
commit 3ca7480829
  1. 3
      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 = [];

Loading…
Cancel
Save