diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index f998c9e202369..dff4a015bf81e 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -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 @@ 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()); $this->logger->error('Failed to connect to the app store', ['exception' => $e]); return [];