mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-23 14:06:18 +00:00
No need to catch that Exception
This commit is contained in:
parent
6acadf8e98
commit
ec97072152
1 changed files with 2 additions and 9 deletions
|
@ -45,14 +45,7 @@ class ContentProxy
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((empty($content) || false === $this->validateContent($content)) && false === $disableContentUpdate) {
|
if ((empty($content) || false === $this->validateContent($content)) && false === $disableContentUpdate) {
|
||||||
try {
|
$fetchedContent = $this->graby->fetchContent($url);
|
||||||
$fetchedContent = $this->graby->fetchContent($url);
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
$this->logger->error('Error while trying to fetch content from URL.', [
|
|
||||||
'entry_url' => $url,
|
|
||||||
'error_msg' => $e->getMessage(),
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// when content is imported, we have information in $content
|
// when content is imported, we have information in $content
|
||||||
// in case fetching content goes bad, we'll keep the imported information instead of overriding them
|
// in case fetching content goes bad, we'll keep the imported information instead of overriding them
|
||||||
|
@ -73,7 +66,7 @@ class ContentProxy
|
||||||
* Will fall back to OpenGraph data if available.
|
* Will fall back to OpenGraph data if available.
|
||||||
*
|
*
|
||||||
* @param Entry $entry Entry to stock
|
* @param Entry $entry Entry to stock
|
||||||
* @param array $content Array with at least title and URL
|
* @param array $content Array with at least title, url & html
|
||||||
*/
|
*/
|
||||||
private function stockEntry(Entry $entry, array $content)
|
private function stockEntry(Entry $entry, array $content)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue