CLN: do not subclass keyerror in invalidindexerror