[orca] Handle another case of objects going defunct during presentation generation
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle another case of objects going defunct during presentation generation
- Date: Thu, 18 Oct 2018 07:19:24 +0000 (UTC)
commit 2a81805ecfd33a0205c3f13174d3c033183dba97
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Oct 18 09:18:43 2018 +0200
Handle another case of objects going defunct during presentation generation
src/orca/generator.py | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index 8f62e732d..18f04f707 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -408,17 +408,17 @@ class Generator:
if role == pyatspi.ROLE_LABEL:
return []
- description = ""
+ try:
+ name = obj.name
+ description = obj.description
+ except:
+ msg = "ERROR: Exception getting name and description for %s" % obj
+ debug.println(debug.LEVEL_INFO, msg, True)
+ name = ""
+ description = ""
+
if role == pyatspi.ROLE_ICON:
name = self._script.utilities.displayedText(obj) or ""
- else:
- try:
- name = obj.name
- description = obj.description
- except:
- msg = "ERROR: Exception getting name and description for %s" % obj
- debug.println(debug.LEVEL_INFO, msg, True)
- name = ""
result = []
if description:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]