Judson Lester wrote:
> 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'"

I think you're right about what the OP wants.  I had initially thought 
that both syntaxes would stop the loop, but on second reading, I think I 
was wrong about that.  Gotcha.

> 
> Judson

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen / marnen.org
-- 
Posted via http://www.ruby-forum.com/.