lib/eotb.rb in eotb-0.5.3 vs lib/eotb.rb in eotb-0.5.7
- old
+ new
@@ -30,9 +30,12 @@
Net::HTTP.new(@@uri.host, @@uri.port).start.request(@@post)
}
rescue => e
logger = Logger.new("log/#{ENV['RAILS_ENV']}.log")
logger.error "ERROR eotb gem: " + e.to_s
+ rescue Timeout::Error => e
+ logger = Logger.new("log/#{ENV['RAILS_ENV']}.log")
+ logger.error "ERROR eotb gem: " + e.to_s
end
else
@@counter += 1
end
end