inject_rthread(): Try Except block formatting