System Information
Operating system: Microsoft Windows 10 Professionnel
Graphics card: Nvidia Gefroce RTX 2080 Super
Blender Version
Blender 3.0.0, hash: f1cca3055776 , branch: master
Seems like it was wrong since the beginning in rBd6891d9bee2b: Add Extras Dropdown Menu to Constraints
Short description of error
Blender crash when we use bpy.ops.constraint.apply(constraint="Transform Cache") when there are no constraint to apply instead of raising an error.
Exact steps for others to reproduce the error
Open a scene with a cube and run bpy.ops.constraint.apply(constraint="Transform Cache") in script mode