summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/methodobject.c2
1 files changed, 1 insertions, 1 deletions
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;
}