Python Vérifiez si l'attribut existe en classe

if hasattr(obj, 'propertyName'):
	...
M. Alban Landry