commit | 016564ab51f991e7d67a62f4aa079df376ae549f | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sat Jan 07 11:54:44 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Sat Jan 07 11:54:44 1995 +0000 |
tree | 4fdff068193aab48698d31b963e1e035f5e62ffc | |
parent | 5e56997969435c98a79dc12a6d0c12c2b487f834 [diff] |
attribute-less object is AttributeError, not TypeError
diff --git a/Objects/object.c b/Objects/object.c index d1bc681..424caeb 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -254,7 +254,7 @@ char *name; { if (v->ob_type->tp_getattr == NULL) { - err_setstr(TypeError, "attribute-less object"); + err_setstr(AttributeError, "attribute-less object"); return NULL; } else {