From: Andrew Dolgov Date: Mon, 3 Sep 2018 10:03:35 +0000 (+0300) Subject: update_daemon_common: do not abort entire batch if PDOException happens when processi... X-Git-Tag: 18.12~79 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=62d0060aa1812022718d01b47b14dfd0acda9f1a;p=tt-rss.git update_daemon_common: do not abort entire batch if PDOException happens when processing individual feeds --- diff --git a/classes/rssutils.php b/classes/rssutils.php index 5a1a9467..bffc41c6 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));