identity=None\r
#For Window root IAccessibles, we just want to use the new window handle, but use the best API for that window, rather than IAccessible\r
#If it does happen to be IAccessible though, we only want the client, not the window root IAccessible\r
- if identity and identity['objectID']==0 and identity['childID']==0:\r
+ if identity and identity.get('objectID',None)==0 and identity.get('childID',None)==0:\r
windowHandle=identity.get('windowHandle',None)\r
if windowHandle:\r
kwargs=dict(windowHandle=windowHandle)\r