take the rap

Verb

 * 1)  To be blamed or punished for something, especially for the wrongful actions of another; to willingly allow oneself to be so blamed or punished.