Skip to content

Commit

Permalink
Update Objects/typeobject.c
Browse files Browse the repository at this point in the history
  • Loading branch information
sunmy2019 authored Apr 24, 2023
1 parent f6c3704 commit 91aa490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -8259,7 +8259,7 @@ _Py_slot_tp_getattr_hook(PyObject *self, PyObject *name)
((PyWrapperDescrObject *)getattribute)->d_wrapped ==
(void *)PyObject_GenericGetAttr)) {
res = _PyObject_GenericGetAttrWithDict(self, name, NULL, 1);
/* if no error has occured, then it must be suppressed by us */
/* if no error has occurred, then it must be suppressed by us */
if (res == NULL && !PyErr_Occurred()) {
res = call_attribute(self, getattr, name);
}
Expand Down

0 comments on commit 91aa490

Please sign in to comment.