lib/pears/provider/remote_file.rb in pears-0.0.8 vs lib/pears/provider/remote_file.rb in pears-0.0.9
- old
+ new
@@ -6,10 +6,10 @@
class RemoteFile < Base
def initialize(remote_url, on_failure: :raise)
yaml_data = Net::HTTP.get(URI(remote_url))
@data = parse_yaml(yaml_data)
- rescue SocketError, InvalidProviderData => e
+ rescue SocketError, InvalidProviderData, Errno::ECONNREFUSED => e
if on_failure == :null
@data = {}
else
raise e
end