lib/mako/feed_requester.rb in mako_rss-0.2.2 vs lib/mako/feed_requester.rb in mako_rss-0.2.3
- old
+ new
@@ -18,10 +18,10 @@
#
# @return [Mako::FeedRequester]
def fetch
begin
request = HTTParty.get(feed_url)
- rescue SocketError
+ rescue SocketError, HTTParty::RedirectionTooDeep
Mako.errors.add_error "Could not complete request to #{feed_url}."
self.ok = false
return self
end
unless request.code == 200