Also handle AttributeError