ID EN
Built-in Exceptions

LookupError

Python 3.11

The base class for the exceptions that are raised when a key or index used on a mapping or sequence is invalid: IndexError, KeyError. This can be raised directly by codecs.lookup().

Syntax

PYTHON
exception LookupError

See Also

IndexError KeyError codecs.lookup()