[orca] Handle (another) GError which prevents Orca from speaking menu items in Skype
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle (another) GError which prevents Orca from speaking menu items in Skype
- Date: Mon, 12 Mar 2012 10:55:07 +0000 (UTC)
commit 4c39fbcfd0a6c9cb56709887c3f0346eee874b89
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Mar 12 06:54:04 2012 -0400
Handle (another) GError which prevents Orca from speaking menu items in Skype
src/orca/script_utilities.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 7a97658..3adcf14 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -546,7 +546,11 @@ class Utilities:
except:
displayedText = None
- role = obj.getRole()
+ try:
+ role = obj.getRole()
+ except (LookupError, RuntimeError):
+ role = None
+
if role == pyatspi.ROLE_COMBO_BOX:
displayedText = self._displayedTextInComboBox(obj)
if not self._script.generatorCache.has_key(self.DISPLAYED_TEXT):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]