Taking the blame.

This idiom or expression has to do with:

Accepting the blame.

When someone says “She took the blame for our failure,” they mean something like “She was blamed, willingly or not, for something she didn’t do.”

Compare to:
Holding the bag.