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 ;
@@ -110,7 +112,7 @@ protected function fetch($ETag, $content) {
110112 $ client = $ this ->clientService ->newClient ();
111113 try {
112114 $ response = $ client ->get ($ this ->getEndpoint (), $ options );
113- } catch (ConnectException $ e ) {
115+ } catch (ConnectException | ClientException | ServerException $ e ) {
114116 $ this ->config ->setAppValue ('settings ' , 'appstore-fetcher-lastFailure ' , (string )time ());
115117 throw $ e ;
116118 }
You can’t perform that action at this time.
0 commit comments