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 3030 */
3131namespace OC \App \AppStore \Fetcher ;
3232
33+ use GuzzleHttp \Exception \ClientException ;
3334use GuzzleHttp \Exception \ConnectException ;
35+ use GuzzleHttp \Exception \ServerException ;
3436use OC \Files \AppData \Factory ;
3537use OCP \AppFramework \Http ;
3638use OCP \AppFramework \Utility \ITimeFactory ;
@@ -123,7 +125,7 @@ protected function fetch($ETag, $content) {
123125 $ client = $ this ->clientService ->newClient ();
124126 try {
125127 $ response = $ client ->get ($ this ->getEndpoint (), $ options );
126- } catch (ConnectException $ e ) {
128+ } catch (ConnectException | ClientException | ServerException $ e ) {
127129 $ this ->config ->setAppValue ('settings ' , 'appstore-fetcher-lastFailure ' , (string )time ());
128130 throw $ e ;
129131 }
You can’t perform that action at this time.
0 commit comments