[orca] Handle timeouts in liveregions._getMessage() more gracefully



commit 3497852fc6c0d147c9f34bc91579bf0f1d76bf0e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Oct 8 08:37:52 2013 -0400

    Handle timeouts in liveregions._getMessage() more gracefully

 src/orca/liveregions.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/liveregions.py b/src/orca/liveregions.py
index ec69c64..04e27b4 100644
--- a/src/orca/liveregions.py
+++ b/src/orca/liveregions.py
@@ -416,7 +416,10 @@ class LiveRegionManager:
 
             # We found an embed character.  We can expect a children-changed
             # event, which we will act on, so just return.
-            txt = sourceitext.getText(0, -1)
+            try:
+                txt = sourceitext.getText(0, -1)
+            except:
+                return None
             if txt.count(self._script.EMBEDDED_OBJECT_CHARACTER) > 0:
                 return None
 


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