From: James Teh Date: Wed, 25 Jan 2012 07:13:51 +0000 (+1000) Subject: adobeAcrobat.AcrobatNode NVDAObject: Don't log debugWarnings when retrieving accID... X-Git-Tag: jpdev130418~1120 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b7ca56ded4202074a736f91c5be4fcd7d8180463;p=nvdajp%2Fnvdajp.git adobeAcrobat.AcrobatNode NVDAObject: Don't log debugWarnings when retrieving accID or pdDomNode fails. Reader seems to have silly AVL_AVView client objects above the document which aren't really document nodes. Unfortunately, we can't distinguish them from document nodes until these fail, so the log gets flooded with warnings. These warnings aren't that useful anyway. --- diff --git a/source/NVDAObjects/IAccessible/adobeAcrobat.py b/source/NVDAObjects/IAccessible/adobeAcrobat.py index 5e8094b81..d4d3639a3 100644 --- a/source/NVDAObjects/IAccessible/adobeAcrobat.py +++ b/source/NVDAObjects/IAccessible/adobeAcrobat.py @@ -59,7 +59,6 @@ class AcrobatNode(IAccessible): try: self.accID = serv.QueryService(SID_AccID, IAccID).get_accID() except COMError: - log.debugWarning("Failed to get ID from IAccID", exc_info=True) self.accID = None # Get the IPDDomNode. @@ -67,7 +66,6 @@ class AcrobatNode(IAccessible): self.pdDomNode = serv.QueryService(SID_GetPDDomNode, IGetPDDomNode).get_PDDomNode(self.IAccessibleChildID) except COMError: self.pdDomNode = None - log.debugWarning("Error getting IPDDomNode") if self.pdDomNode: # If this node has IPDDomElement, query to that.