Catch attribute errors.