Merge pull request #55436 from nextcloud/backport/55422/stable31

pull/55450/head
Kate 2025-09-30 23:50:03 +07:00 committed by GitHub
commit af4d25c634
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

@ -5,7 +5,9 @@
*/
namespace OC\App\AppStore\Fetcher;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\ServerException;
use OC\Files\AppData\Factory;
use OCP\AppFramework\Http;
use OCP\AppFramework\Utility\ITimeFactory;
@ -87,7 +89,7 @@ abstract class Fetcher {
$client = $this->clientService->newClient();
try {
$response = $client->get($this->getEndpoint(), $options);
} catch (ConnectException $e) {
} catch (ConnectException|ClientException|ServerException $e) {
$this->config->setAppValue('settings', 'appstore-fetcher-lastFailure', (string)time());
$this->logger->error('Failed to connect to the app store', ['exception' => $e]);
return [];