Next line:
page_source = Net::HTTP.get(URI.parse("http://not-a-real-url.com"))
When passing a URL that is correctly formatted but doesn't go anywhere (as in the example above), it dies with:
getaddrinfo: nodename nor servname provided, or not known
I am trying to figure out how to βstart / saveβ this condition, but I cannot find in the documentation what error, if any, the get method throws.
jefflunt
source share