`s_attach` is CmdResult objec, I think you meant `s_attach.exit_status`