fixes issue #189 with a script lacking exception handling
This commit is contained in:
parent
da365be5a2
commit
c19f87f867
@ -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!";
|
||||
|
Loading…
Reference in New Issue
Block a user