fix no method error rescue

the rescue block did not properly catch the exception raised.