Commit 3cf0ddfd authored by Guido van Rossum's avatar Guido van Rossum

(Some) new error handling.

parent 85a5fbbd
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment