[orca] Handle another instance of an object going defunct on us



commit 3f0959408ea91722639f470ded6d93372556b65d
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Feb 14 13:32:36 2020 +0100

    Handle another instance of an object going defunct on us

 src/orca/scripts/web/script_utilities.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 4c09691f3..042600d68 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1499,7 +1499,10 @@ class Utilities(script_utilities.Utilities):
 
         for i, (acc, start, end, string) in enumerate(contents):
             indent = " " * 8
-            extents = self.getExtents(acc, start, end)
+            try:
+                extents = self.getExtents(acc, start, end)
+            except:
+                extents = "(exception)"
             states = debug.statesToString(acc, indent)
             attrs = debug.attributesToString(acc, indent)
             msg = "     %i. %s (chars: %i-%i) '%s' extents=%s\n%s\n%s" % \


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