Coercing grasshopper geometry into memory

Hi All,

I’m currently coding a grasshopper plugin in Python. At this particular stage, I need to coerce the geometry into memory. This works fine if the geometry comes from Rhino, as it has a GUID.

temp_geometry = rs.coercegeometry(shape)

However, if the geometry in question was produced via grasshopper I get a runtime error saying that “noneType” object has no attribute ‘ObjectType’

I gather it’s because Grasshopper geometry doesn’t have GUIDs. How can I get around this?