]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_daemon_common: do not abort entire batch if PDOException happens when processi...
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 3 Sep 2018 10:03:35 +0000 (13:03 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 3 Sep 2018 10:03:35 +0000 (13:03 +0300)
classes/rssutils.php

index 5a1a9467c804148eb931b93d4df6fb5e78491da0..bffc41c6f1359df4cceee8d6dd40ca9f73be231a 100755 (executable)
@@ -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));