Rescue rescue Errno::EHOSTUNREACH
Make sure the AC won't crash if a host in unreachable when calling
herems.
@@ -29,6 +29,8 @@ module HermesClient
return JSON.load(response.body)
rescue Errno::ETIMEDOUT, Timeout::Error
raise FailedNodeException.new("Failed to call Hermes: timed out")
+ rescue Errno::EHOSTUNREACH
+ raise FailedNodeException.new("Failed to call Hermes: host unreachable")
rescue Errno::ECONNREFUSED
raise FailedNodeException.new("Failed to call Hermes: connection refused")
end
