Skip to content

Instantly share code, notes, and snippets.

Created September 12, 2015 07:52
Show Gist options
  • Save anonymous/2b6675619ca92d33a800 to your computer and use it in GitHub Desktop.
Save anonymous/2b6675619ca92d33a800 to your computer and use it in GitHub Desktop.
catch open uri
if open(url) == OpenURI::HTTPError
# log the error
else
# do some nokogiri things
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment