how to check if an object has a certain property in python? code example
Example: python3 check if object has attribute
try:
doStuff(a.property)
except AttributeError:
otherStuff()
try:
doStuff(a.property)
except AttributeError:
otherStuff()