lib/geocoder/lookups/base.rb in geocoder-1.3.6 vs lib/geocoder/lookups/base.rb in geocoder-1.3.7
- old
+ new
@@ -284,9 +284,11 @@
end
client.request(req)
end
rescue Timeout::Error
raise Geocoder::LookupTimeout
+ rescue Errno::EHOSTUNREACH, Errno::ETIMEDOUT, Errno::ENETUNREACH
+ raise Geocoder::NetworkError
end
def use_ssl?
if supported_protocols == [:https]
true