]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixes issue #189 with a script lacking exception handling
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 24 Jun 2016 13:19:24 +0000 (15:19 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 24 Jun 2016 13:19:24 +0000 (15:19 +0200)
plugins/OStatus/scripts/renew-feeds.php

index 8f8ac3ee1d968416dacd8557e6e5fba7360181a4..d63f448827f4f0b37bd8e273683a1d695ab4f135 100755 (executable)
@@ -37,7 +37,11 @@ try {
 
 while ($sub->fetch()) {
     echo "Renewing feed subscription\n\tExp.: {$sub->sub_end}\n\tFeed: {$sub->uri}\n\tHub:  {$sub->huburi}\n";
-    $sub->renew();
+    try {
+        $sub->renew();
+    } catch (Exception $e) {
+        echo "FAILED: {$e->getMessage()}\n";
+    }
 }
 
 echo "Done!";