Add error checking if entity is actually an entity
Add error checking if entity is actually an entity

thomasyu888/synapsePythonClient,larssono/synapsePythonClient,zimingd/synapsePythonClient,kkdang/synapsePythonClient