fixes issue #189 with a script lacking exception handling

This commit is contained in:
Mikael Nordfeldth 2016-06-24 15:19:24 +02:00
parent da365be5a2
commit c19f87f867
1 changed files with 5 additions and 1 deletions

View File

@ -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!";