From: Mikael Nordfeldth Date: Fri, 24 Jun 2016 13:19:24 +0000 (+0200) Subject: fixes issue #189 with a script lacking exception handling X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c19f87f867d6281890034044f66da8e3d08ed612;p=quix0rs-gnu-social.git fixes issue #189 with a script lacking exception handling --- 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!";