File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/private/App/AppStore/Fetcher Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 66 */
77namespace OC \App \AppStore \Fetcher ;
88
9+ use GuzzleHttp \Exception \ClientException ;
910use GuzzleHttp \Exception \ConnectException ;
11+ use GuzzleHttp \Exception \ServerException ;
1012use OC \Files \AppData \Factory ;
1113use OCP \AppFramework \Http ;
1214use OCP \AppFramework \Utility \ITimeFactory ;
@@ -86,7 +88,7 @@ protected function fetch($ETag, $content) {
8688 $ client = $ this ->clientService ->newClient ();
8789 try {
8890 $ response = $ client ->get ($ this ->getEndpoint (), $ options );
89- } catch (ConnectException $ e ) {
91+ } catch (ConnectException | ClientException | ServerException $ e ) {
9092 $ this ->config ->setAppValue ('settings ' , 'appstore-fetcher-lastFailure ' , (string ) time ());
9193 $ this ->logger ->error ('Failed to connect to the app store ' , ['exception ' => $ e ]);
9294 return [];
You can’t perform that action at this time.
0 commit comments