]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use AttributeError.
authorGuido van Rossum <guido@python.org>
Tue, 10 Dec 1991 13:58:49 +0000 (13:58 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Dec 1991 13:58:49 +0000 (13:58 +0000)
Objects/methodobject.c

index d306587d6e637dcadcd8011ac4750e6c0ea483e0..3ebdb37792221fa9e237dbd2806885418ec4c1e7 100644 (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;
 }