Skip to content

Commit 75d9a70

Browse files
authored
Update Objects/typeobject.c
1 parent c3aebf6 commit 75d9a70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8298,7 +8298,8 @@ _Py_slot_tp_getattr_hook(PyObject *self, PyObject *name)
82988298
((PyWrapperDescrObject *)getattribute)->d_wrapped ==
82998299
(void *)PyObject_GenericGetAttr)) {
83008300
res = _PyObject_GenericGetAttrWithDict(self, name, NULL, 1);
8301-
/* if no error has occurred, then it must be suppressed by us */
8301+
/* if res == NULL with no exception set, then it must be an
8302+
AttributeError suppressed by us. */
83028303
if (res == NULL && !PyErr_Occurred()) {
83038304
res = call_attribute(self, getattr, name);
83048305
}

0 commit comments

Comments
 (0)