The comedian Flip Wilson had a saying, "The devil made me do it." Thus he thought could excuse any misbehavior on his part.
We all like to shift blame when there are mistakes and bad judgements. That is human nature. None of us want to be less than perfect. So we blame others. Think of how Adam blamed Eve, "the woman that You gave me. Was he blaming Eve or God? Eve blamed the serpent.
Scripture tells us that we are accountable for our own actions. We cannot shift blame on to anyone else or even circumstances. When we sin, it is because WE WANT TO.
Let no one say when he is tempted, “I am being tempted by God,” for God cannot be tempted with evil, and he himself tempts no one. But each person is tempted when he is lured and enticed by his own desire. (James 1:13, 14 ESV)
BE responsible and own up to your sin. You cannot hide from it. But God is sure to forgive those who come to Him with repentant hearts.