Minor modification to get_item_by_name to throw KeyError