[orca] Another sanity check to better cope with vanishing accessible objects.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Another sanity check to better cope with vanishing accessible objects.
- Date: Sat, 17 Dec 2011 19:56:46 +0000 (UTC)
commit 52848b9d9b033450215bbb39e6c98d12d7a6e43b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Dec 17 14:54:59 2011 -0500
Another sanity check to better cope with vanishing accessible objects.
src/orca/scripts/default.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index c75f2f4..86bb95c 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -1368,7 +1368,10 @@ class Script(script.Script):
# If this object is CONTROLLED_BY the object that currently
# has focus, speak/braille this object.
#
- relations = obj.getRelationSet()
+ try:
+ relations = obj.getRelationSet()
+ except LookupError:
+ relations = []
for relation in relations:
if relation.getRelationType() \
== pyatspi.RELATION_CONTROLLED_BY:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]