Python scripts could call operators to change the objects mode while transforming. Report an error instead of crashing.