Python Vérifiez si l'attribut existe en classe
if hasattr(obj, 'propertyName'):
...
M. Alban Landry
if hasattr(obj, 'propertyName'):
...