aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bridges/EconomistBridge.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/bridges/EconomistBridge.php b/bridges/EconomistBridge.php
index aad72275..70117cb0 100644
--- a/bridges/EconomistBridge.php
+++ b/bridges/EconomistBridge.php
@@ -99,7 +99,12 @@ class EconomistBridge extends FeedExpander
protected function parseItem(array $item)
{
- $dom = getSimpleHTMLDOM($item['uri']);
+ try {
+ $dom = getSimpleHTMLDOM($item['uri']);
+ } catch (Exception $e) {
+ $item['content'] = $e->getMessage();
+ return $item;
+ }
$article = $dom->find('#new-article-template', 0);
if ($article == null) {