The drivers_remove function is broken when removing invalid drivers.
- Open the attached blend:
- Click Run Script to execute the function (text data block "remove1")
- Error: bpy_struct.driver_remove(): property "pose.bones["thigh.l"].constraints["rotIK"].influence" not found
A workaround I did in Blender 2.79 was changing the driver data_path to a valid one before deleting. It now crashes in 2.8:
- Open the text data block "remove2"
- Run Script
- Should crash