[orca] Fix for bug 668880 - traceback in unity-panel-service



commit 9e5d3537af8196cdee97cba8e5e16d1936e085d7
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Jan 27 16:44:44 2012 -0500

    Fix for bug 668880 - traceback in unity-panel-service

 src/orca/script_utilities.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 0f6d6c9..38de10b 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -593,7 +593,10 @@ class Utilities:
                         break
 
         if not displayedText:
-            displayedText = obj.name
+            try:
+                displayedText = obj.name
+            except LookupError:
+                pass
 
         # [[[WDW - HACK because push buttons can have labels as their
         # children.  An example of this is the Font: button on the General



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