From bd3a2e6b11816ad32ded60eb0f6e8bc36846a840 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 10 Dec 1991 13:58:49 +0000 Subject: Use AttributeError. --- Objects/methodobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/methodobject.c b/Objects/methodobject.c index d306587..3ebdb37 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -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; } -- cgit v0.12