Twice now you have watched Python go looking for something and come back empty-handed. A cat with no birthday. An animal with no voice.
Both times the fix was obvious the moment you saw the message.
There is a third way to cause that same error, and it catches people who have been writing classes for years. It happens when a child sets itself up.