From the OPs description of the problem, and the code presented, yes,
the
rescue will catch the exception, but that will stop the loop.
So, if you're trying to get /missing.html, /broken.html,
/the_url_I_want.svg, and missing raises a 404, then that will get caught
by
the rescue outside of the loop, and you won't make further requests. In
other words:
input:
http://site.com/missing.html
http://site.com/aweseom.html
output:
Page Not Found
When what I understood Kyle to want from the output is something like
Page Not Found
"It's spelled 'awesome'"