Drop RSSCloud queue items if the notice has a bogus profile, rather than attempting to rerun it due to the initial erroring-out. That's not a recoverable error
This commit is contained in:
parent
0ef422593b
commit
6786bbcfbf
|
@ -28,7 +28,12 @@ class RSSCloudQueueHandler extends QueueHandler
|
|||
|
||||
function handle($notice)
|
||||
{
|
||||
try {
|
||||
$profile = $notice->getProfile();
|
||||
} catch (Exception $e) {
|
||||
common_log(LOG_ERR, "Dropping RSSCloud item for notice with bogus profile: " . $e->getMessage());
|
||||
return true;
|
||||
}
|
||||
$notifier = new RSSCloudNotifier();
|
||||
return $notifier->notify($profile);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user