OSDN Git Service

adobeAcrobat.AcrobatNode NVDAObject: Don't log debugWarnings when retrieving accID...
authorJames Teh <jamie@jantrid.net>
Wed, 25 Jan 2012 07:13:51 +0000 (17:13 +1000)
committerJames Teh <jamie@jantrid.net>
Wed, 25 Jan 2012 07:13:51 +0000 (17:13 +1000)
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.

source/NVDAObjects/IAccessible/adobeAcrobat.py

index 5e8094b..d4d3639 100644 (file)
@@ -59,7 +59,6 @@ class AcrobatNode(IAccessible):
                        try:\r
                                self.accID = serv.QueryService(SID_AccID, IAccID).get_accID()\r
                        except COMError:\r
-                               log.debugWarning("Failed to get ID from IAccID", exc_info=True)\r
                                self.accID = None\r
 \r
                # Get the IPDDomNode.\r
@@ -67,7 +66,6 @@ class AcrobatNode(IAccessible):
                        self.pdDomNode = serv.QueryService(SID_GetPDDomNode, IGetPDDomNode).get_PDDomNode(self.IAccessibleChildID)\r
                except COMError:\r
                        self.pdDomNode = None\r
-                       log.debugWarning("Error getting IPDDomNode")\r
 \r
                if self.pdDomNode:\r
                        # If this node has IPDDomElement, query to that.\r