]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/RSSCloud/RSSCloudQueueHandler.php
initial work on yammer importer code
[quix0rs-gnu-social.git] / plugins / RSSCloud / RSSCloudQueueHandler.php
index 295c261895d6152fd4f9e0051794f00317ed6d71..8a09977489b3d463d41f0b14d1568470ae532b81 100644 (file)
@@ -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);
     }
 }
-