? 724184-2_catch_exceptions.patch
? FeedsSimplePieParser.extension.patch
? feeds-pubsubhubbub-724184-1.patch
? libraries/simplepie.inc
Index: libraries/PuSHSubscriber.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feeds/libraries/PuSHSubscriber.inc,v
retrieving revision 1.3
diff -u -p -r1.3 PuSHSubscriber.inc
--- libraries/PuSHSubscriber.inc	2 Mar 2010 14:51:02 -0000	1.3
+++ libraries/PuSHSubscriber.inc	2 Mar 2010 14:52:06 -0000
@@ -75,14 +75,17 @@ class PuSHSubscriber {
     curl_setopt($request, CURLOPT_RETURNTRANSFER, TRUE);
     $data = curl_exec($request);
     if (curl_getinfo($request, CURLINFO_HTTP_CODE) == 200) {
-      $xml = new SimpleXMLElement($data);
-      $xml->registerXPathNamespace('atom', 'http://www.w3.org/2005/Atom');
-      if (empty($hub) && $hub = @current($xml->xpath("//atom:link[attribute::rel='hub']"))) {
-        $hub = (string) $hub->attributes()->href;
-      }
-      if ($self = @current($xml->xpath("//atom:link[attribute::rel='self']"))) {
-        $self = (string) $self->attributes()->href;
+      try {
+        $xml = new SimpleXMLElement($data);
+        $xml->registerXPathNamespace('atom', 'http://www.w3.org/2005/Atom');
+        if (empty($hub) && $hub = @current($xml->xpath("//atom:link[attribute::rel='hub']"))) {
+          $hub = (string) $hub->attributes()->href;
+        }
+        if ($self = @current($xml->xpath("//atom:link[attribute::rel='self']"))) {
+          $self = (string) $self->attributes()->href;
+        }
       }
+      catch (Exception $e) {}
     }
     curl_close($request);
     // Fall back to $url if $self is not given.
