From: Sylvain Joyeux Date: 2007-10-14T19:23:26+09:00 Subject: Re: Problems with catching an exception... "rescue" clauses should be either part of a def ... end construct like this def my_method ... rescue URI::InvalidURIError end or -- and it is your case here -- in a begin ... end construct like this begin rescue URI::InvalidURIError end -- Sylvain Joyeux