Maya Python: How to get rid of keyTangent Warning in Maya?


Hi guys!
Does someone have an idea how can I get rid of this warning?

# Warning: keyTangent: One or more attributes have referenced, procedural or assembly-based animation, and were not modified.

I noticed that it appeared after I changed my animation’s tangent type to Auto tangent
I did it in script editor like this:
cmds.keyTangent(anim, inTangentType='auto', outTangentType='auto')

Any help is appreciated:)