From: Guido van Rossum Date: Sat, 7 Jan 1995 11:54:44 +0000 (+0000) Subject: attribute-less object is AttributeError, not TypeError X-Git-Tag: v1.2b1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=016564ab51f991e7d67a62f4aa079df376ae549f;p=thirdparty%2FPython%2Fcpython.git attribute-less object is AttributeError, not TypeError --- diff --git a/Objects/object.c b/Objects/object.c index d1bc681805f3..424caeb8ab86 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -254,7 +254,7 @@ getattr(v, name) char *name; { if (v->ob_type->tp_getattr == NULL) { - err_setstr(TypeError, "attribute-less object"); + err_setstr(AttributeError, "attribute-less object"); return NULL; } else {