When using a python expression, its execution is disabled by default unless specified differently in the user preferences. Previously this only produced the error "Error: Invalid Python expression". However that isn't really the correct error. Now the error reads "Python restricted for security". I've added a new flag to the driver `DRIVER_FLAG_PYTHON_BLOCKED` that is set if the driver can't run because python is blocked Co-authored by Phillip Oeser Pull Request: https://projects.blender.org/blender/blender/pulls/124587