But if you don’t blame them it can also backfire. I inherited a bad codebase once and tried my best to improve it. But there was only so much time. When I left the guy after me blamed me for the still bad parts immediately.
It's a proud tradition, to gasp silently, mutter in anger as you run git blame, and only discover that you're the person who wrote the code about 20% of the time.