[orca] Handle yet another instance of objects going defunct on us
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle yet another instance of objects going defunct on us
- Date: Fri, 22 Nov 2019 18:45:36 +0000 (UTC)
commit 194f9d26a022614de0658b2fac23a79ad00a2a9c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Nov 22 13:45:26 2019 -0500
Handle yet another instance of objects going defunct on us
src/orca/scripts/web/script_utilities.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index ae0eadd10..03764e437 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -264,7 +264,13 @@ class Utilities(script_utilities.Utilities):
return []
isEmbeds = lambda r: r.getRelationType() == pyatspi.RELATION_EMBEDS
- relations = list(filter(isEmbeds, frame.getRelationSet()))
+ try:
+ relations = list(filter(isEmbeds, frame.getRelationSet()))
+ except:
+ msg = "ERROR: Exception getting embeds relation for %s" % frame
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return []
+
if not relations:
return []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]