Skip to content

Commit af4d25c

Browse files
Merge pull request #55436 from nextcloud/backport/55422/stable31
2 parents 4d10c0a + ddd35e1 commit af4d25c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/private/App/AppStore/Fetcher/Fetcher.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
*/
66
namespace OC\App\AppStore\Fetcher;
77

8+
use GuzzleHttp\Exception\ClientException;
89
use GuzzleHttp\Exception\ConnectException;
10+
use GuzzleHttp\Exception\ServerException;
911
use OC\Files\AppData\Factory;
1012
use OCP\AppFramework\Http;
1113
use OCP\AppFramework\Utility\ITimeFactory;
@@ -87,7 +89,7 @@ protected function fetch($ETag, $content) {
8789
$client = $this->clientService->newClient();
8890
try {
8991
$response = $client->get($this->getEndpoint(), $options);
90-
} catch (ConnectException $e) {
92+
} catch (ConnectException|ClientException|ServerException $e) {
9193
$this->config->setAppValue('settings', 'appstore-fetcher-lastFailure', (string)time());
9294
$this->logger->error('Failed to connect to the app store', ['exception' => $e]);
9395
return [];

0 commit comments

Comments
 (0)