From c19f87f867d6281890034044f66da8e3d08ed612 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 24 Jun 2016 15:19:24 +0200 Subject: [PATCH] fixes issue #189 with a script lacking exception handling --- plugins/OStatus/scripts/renew-feeds.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/OStatus/scripts/renew-feeds.php b/plugins/OStatus/scripts/renew-feeds.php index 8f8ac3ee1d..d63f448827 100755 --- a/plugins/OStatus/scripts/renew-feeds.php +++ b/plugins/OStatus/scripts/renew-feeds.php @@ -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!";