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 {