summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-09-03 13:03:35 +0300
committerAndrew Dolgov <[email protected]>2018-09-03 13:03:35 +0300
commit62d0060aa1812022718d01b47b14dfd0acda9f1a (patch)
treee5f5b0e22061a0d0560fcd69a79e47fa85825af1 /classes/rssutils.php
parent01d22e255f7a026bb0b0324cde1d8a8756c84a20 (diff)
update_daemon_common: do not abort entire batch if PDOException happens when processing individual feeds
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-xclasses/rssutils.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index 5a1a9467c..bffc41c6f 100755
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -187,7 +187,12 @@ class RSSUtils {
array_push($batch_owners, $tline["owner_uid"]);
$fstarted = microtime(true);
- RSSUtils::update_rss_feed($tline["id"], true, false);
+
+ try {
+ RSSUtils::update_rss_feed($tline["id"], true, false);
+ } catch (PDOException $e) {
+ Logger::get()->log_error(E_USER_NOTICE, $e->getMessage(), $e->getFile(), $e->getLine(), $e->getTraceAsString());
+ }
_debug_suppress(false);
_debug(sprintf(" %.4f (sec)", microtime(true) - $fstarted));