mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Use AttributeError.
This commit is contained in:
parent
3a62845094
commit
bd3a2e6b11
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue