ghpythonlib.components.Move returning None


I’m working on a script to run in the background when working in rhino, allowing me to create and place grasshopper “blocks” (not real blocks) on the fly–essentially by drawing a rectangle around some geometry, giving the rectangle a name, and then placing a point somewhere else with the same name. This is done using the geometry pipeline component.

Usually it works fine, but occasionally the ghpythonlib Move function in my Python script starts returning None–even though both the geometry and vector arguments are still being passed in. Closing and reopening Rhino & Grasshopper always solves the problem, so seems like a bug, but any ideas why this might be happening or suggestions to fix it?

Attaching a simplified version of the script, but the issue can be difficult to reproduce on purpose… (15.8 KB)