Documentation
In Python 3.13, PyObject_HasAttr doc says:
Exceptions that occur when this calls __getattr__() and __getattribute__() methods are silently ignored.
But its exception behavior after #106674 is to report all exceptions other than AttributeError.
Linked PRs