X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FRSSCloud%2FRSSCloudQueueHandler.php;h=8a09977489b3d463d41f0b14d1568470ae532b81;hb=324fada5ea80ece851a2481127a5cbd5732e171f;hp=295c261895d6152fd4f9e0051794f00317ed6d71;hpb=29d83c8ca94201cb010b5aef564df78ab868ea0c;p=quix0rs-gnu-social.git diff --git a/plugins/RSSCloud/RSSCloudQueueHandler.php b/plugins/RSSCloud/RSSCloudQueueHandler.php index 295c261895..8a09977489 100644 --- a/plugins/RSSCloud/RSSCloudQueueHandler.php +++ b/plugins/RSSCloud/RSSCloudQueueHandler.php @@ -28,9 +28,13 @@ class RSSCloudQueueHandler extends QueueHandler function handle($notice) { - $profile = $notice->getProfile(); + 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); } } -