summaryrefslogtreecommitdiffstats
path: root/lib/Fetcher/FeedFetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fetcher/FeedFetcher.php')
-rwxr-xr-xlib/Fetcher/FeedFetcher.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/Fetcher/FeedFetcher.php b/lib/Fetcher/FeedFetcher.php
index 7423c66df..5b48070d5 100755
--- a/lib/Fetcher/FeedFetcher.php
+++ b/lib/Fetcher/FeedFetcher.php
@@ -20,6 +20,7 @@ use FeedIo\FeedInterface;
use FeedIo\FeedIo;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
+use GuzzleHttp\Exception\ConnectException;
use Net_URL2;
use OCP\IL10N;
@@ -376,14 +377,14 @@ class FeedFetcher implements IFeedFetcher
'logo' => $favicon
]
);
- } catch (RequestException $e) {
- $this->logger->info(
- 'An error occurred while trying to download the feed logo of {url}: {error}',
- [
- 'url' => $url,
- 'error' => $e->getResponse() ?? 'Unknown'
- ]
- );
+ } catch (RequestException | ConnectException $e) {
+ $this->logger->info(
+ 'An error occurred while trying to download the feed logo of {url}: {error}',
+ [
+ 'url' => $url,
+ 'error' => $e->getResponse() ?? 'Unknown'
+ ]
+ );
}
$is_image = $downloaded && substr(mime_content_type($favicon_path), 0, 5) === "image";