maxlapshin-feedzirra 0.0.16.1 → 0.0.16.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/feedzirra/feed.rb +5 -5
- metadata +1 -1
data/lib/feedzirra/feed.rb
CHANGED
@@ -142,15 +142,15 @@ module Feedzirra
|
|
142
142
|
klass = determine_feed_parser_for_xml(xml)
|
143
143
|
|
144
144
|
if klass
|
145
|
-
begin
|
145
|
+
# begin
|
146
146
|
feed = klass.parse(xml)
|
147
147
|
feed.feed_url = http.last_effective_url
|
148
148
|
feed.etag = http.response_header.etag
|
149
149
|
feed.last_modified = http.response_header.last_modified
|
150
150
|
options[:on_success].call(url, feed) if options.has_key?(:on_success)
|
151
|
-
rescue Exception => e
|
152
|
-
options[:on_failure].call(url, http) if options.has_key?(:on_failure)
|
153
|
-
end
|
151
|
+
# rescue Exception => e
|
152
|
+
# options[:on_failure].call(url, http) if options.has_key?(:on_failure)
|
153
|
+
# end
|
154
154
|
else
|
155
155
|
# puts "Error determining parser for #{url} - #{c.last_effective_url}"
|
156
156
|
# raise NoParserAvailable.new("no valid parser for content.") (this would unfirtunately fail the whole 'multi', so it's not really useable)
|
@@ -243,4 +243,4 @@ module Feedzirra
|
|
243
243
|
multi.add(easy)
|
244
244
|
end
|
245
245
|
end
|
246
|
-
end
|
246
|
+
end
|