Permalink
Browse files

Fixed feed subscriptions, geez

  • Loading branch information...
1 parent b87a2d2 commit dc13d83ce21a0d3692e5f32708caebac009a7467 @konklone konklone committed Sep 20, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 subscriptions/manager.rb
View
@@ -134,12 +134,11 @@ def self.poll(subscription, function = :search, options = {})
puts "\n[#{subscription.subscription_type}][#{function}][#{subscription.interest_in}][#{subscription.id}] #{url}\n\n" if !test? and config[:debug][:output_urls]
- response = nil
-
# this override is only used by the external feed parser, which is parsing some kind of XML feed
if adapter.respond_to?(:url_to_response)
begin
response = adapter.url_to_response url
+ items = adapter.items_for response, function, options
rescue Timeout::Error, Errno::ECONNREFUSED, EOFError, Errno::ETIMEDOUT => ex
return error_for "Timeout error polling feed", url, function, options, subscription, ex
rescue AdapterParseException => ex

0 comments on commit dc13d83

Please sign in to comment.