ID EN
Built-in Exceptions

AttributeError

Python 3.11

Raised when an attribute reference (see Attribute references) or assignment fails. (When an object does not support attribute references or attribute assignments at all, TypeError is raised.)

Syntax

PYTHON
exception AttributeError

See Also

Attribute references TypeError