Indentation is off, but not a big deal.  rescue should be in line with begin