Added AttributeError in case get_profile doesn't exist