Skip to content

Commit 412730c

Browse files
committed
Merge pull request #578 from toshok/getattr-default-exc
for getattrFunc use getattrInternal instead of getattr
2 parents 2be0638 + 1603542 commit 412730c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/builtin_modules/builtins.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Box* getattrFunc(Box* obj, Box* _str, Box* default_value) {
427427

428428
Box* rtn = NULL;
429429
try {
430-
rtn = getattr(obj, str->data());
430+
rtn = getattrInternal(obj, str->data(), NULL);
431431
} catch (ExcInfo e) {
432432
if (!e.matches(AttributeError))
433433
throw e;

0 commit comments

Comments
 (0)