What is the meaning of [take the will for the deed]

We must always give people credit for their good intentions, even if they fail to carry them through