bloco hasattr () vs try-except para lidar com atributos inexistentes

if hasattr(obj, 'attribute'): # do somthing vs try: # access obj.attribute except AttributeError, e: # deal with AttributeError Qual deve ser preferido e por quê?