get_attribute should never raise KeyError