[orca] Try to handle metacity timeouts more gracefully



commit 0ebfa6c74ade111a37456ae5f25733bc988db7e7
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Apr 30 10:09:38 2012 -0400

    Try to handle metacity timeouts more gracefully

 src/orca/scripts/apps/metacity/script.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/metacity/script.py b/src/orca/scripts/apps/metacity/script.py
index 7a32cd4..2253e49 100644
--- a/src/orca/scripts/apps/metacity/script.py
+++ b/src/orca/scripts/apps/metacity/script.py
@@ -99,7 +99,10 @@ class Script(default.Script):
                     found = True
                 i = i + 1
 
-        text = obj.name
+        try:
+            text = obj.name
+        except:
+            text = objName
 
         # Translators: the "Workspace " and "Desk " strings are
         # the prefix of what metacity shows when you press



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]