Use AttributeError.

This commit is contained in:
Guido van Rossum 1991-12-10 13:58:49 +00:00
parent 3a62845094
commit bd3a2e6b11

View File

@ -170,6 +170,6 @@ findmethod(ml, op, name)
if (strcmp(name, ml->ml_name) == 0)
return newmethodobject(ml->ml_name, ml->ml_meth, op);
}
err_setstr(NameError, name);
err_setstr(AttributeError, name);
return NULL;
}