From 3cf0ddfd94fb683ba265c40f60bd1e329848f1c6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 14 Oct 1990 19:58:09 +0000 Subject: (Some) new error handling. --- Objects/classobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Objects/classobject.c b/Objects/classobject.c index 9a55280..6ed97a9 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; } -- cgit v0.12