diff --git a/lib/pubsubhubbub.rb b/lib/pubsubhubbub.rb
index 2bc4829bd0ef15046a5a6cdf58ea9010baa2f045..f6a9be5e17dd212aa1678140c7547c0364f39450 100644
--- a/lib/pubsubhubbub.rb
+++ b/lib/pubsubhubbub.rb
@@ -8,15 +8,16 @@ class Pubsubhubbub
 
   def initialize(hub, options={})
     @headers = H.merge(options[:head]) if options[:head]
-    @hub = hub 
+    @hub = hub
   end
 
   def publish(feed)
     begin
-      response = RestClient.post(@hub, :headers => @headers, 'hub.url' => feed, 'hub.mode' => 'publish')
-    return response
-    rescue  RestClient::BadRequest=> e
-      Rails.logger.warn "Public URL for your users are incorrect.  this is ok if you are in development and localhost is your pod_url#{e.inspect}" 
+      return RestClient.post(@hub, :headers => @headers, 'hub.url' => feed, 'hub.mode' => 'publish')
+    rescue RestClient::BadRequest=> e
+      Rails.logger.warn "Public URL for your users are incorrect.  (This is ok if you are in development and localhost is your pod_url) #{e.inspect}"
+    rescue SocketError
+      Rails.logger.warn "Pod not connected to the internet.  Cannot post to pubsub hub!"
     end
   end
 end