non-int also raises KeyError