File tree Expand file tree Collapse file tree
lib/private/App/AppStore/Fetcher Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 */
66namespace OC \App \AppStore \Fetcher ;
77
8+ use GuzzleHttp \Exception \ClientException ;
89use GuzzleHttp \Exception \ConnectException ;
10+ use GuzzleHttp \Exception \ServerException ;
911use OC \Files \AppData \Factory ;
1012use OCP \AppFramework \Http ;
1113use 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 [];
You can’t perform that action at this time.
0 commit comments