From: Guido van Rossum Date: Sun, 14 Oct 1990 19:58:09 +0000 (+0000) Subject: (Some) new error handling. X-Git-Tag: v0.9.8~1176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cf0ddfd94fb683ba265c40f60bd1e329848f1c6;p=thirdparty%2FPython%2Fcpython.git (Some) new error handling. --- diff --git a/Objects/classobject.c b/Objects/classobject.c index 9a5528032303..6ed97a92884c 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -11,6 +11,7 @@ #include "funcobject.h" #include "classobject.h" #include "objimpl.h" +#include "errors.h" typedef struct { OB_HEAD @@ -71,7 +72,7 @@ class_getattr(op, name) return v; } } - errno = ESRCH; + err_setstr(NameError, name); return NULL; }