Something went wrong inside python code (3506)

It related to my request where Undo/Redo doesn’t remember the name specified for Undo Grouping (fixed in 3506).