mirror of
https://github.com/python/cpython.git
synced 2024-11-28 20:33:54 +08:00
Use AttributeError.
This commit is contained in:
parent
3a62845094
commit
bd3a2e6b11
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user