'NoneType' object has no attribute 'ToBrep'

@JSteele,

See this :