lib/boppers/uptime.rb in boppers-uptime-0.1.1 vs lib/boppers/uptime.rb in boppers-uptime-0.1.2
- old
+ new
@@ -28,10 +28,10 @@
def call
succeed = begin
response = HttpClient.get(url, {}, {}, timeout: 1)
valid_response?(response)
- rescue SocketError, Timeout::Error
+ rescue SocketError, Timeout::Error, Net::OpenTimeout
false
end
return succeed! if succeed