Python verifique se o atributo existe na aula
if hasattr(obj, 'propertyName'):
...
M. Alban Landry
if hasattr(obj, 'propertyName'):
...