I always take credit for anything bad when a member of my team was responsible. Ultimately the blame is mine anyway. Why not accept it right up front instead of pointing fingers? The team member needs grace. I can address the situation one-on-one without the help of an angry mob.
The only time I take credit for anything good is if the only one involved was me. It’s not that I duck credit. As the leader I don’t need to claim the glory. Glory filters upward, so if credit is deserved, I eventually get some anyway.
All credit is God’s.