summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/classobject.c3
1 files changed, 2 insertions, 1 deletions
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;
}