From 779b5da2d3692b22d14039681813bc11bbdd7de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Tue, 30 Sep 2025 11:27:47 +0200 Subject: [PATCH] fix(appstore): Also catch ClientException and ServerException MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- lib/private/App/AppStore/Fetcher/Fetcher.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index 130e8d52e45a8..df7d555213120 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -30,7 +30,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; @@ -110,7 +112,7 @@ protected function fetch($ETag, $content) { $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()); throw $e; }