[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: Wed, 17 Oct 2018 17:00:13 +0000 (UTC)
commit ca177f12a8d0b8803f8c2c5a89b3f652121d2d06
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Oct 17 18:58:55 2018 +0200
Handle another case of objects going defunct during presentation generation
src/orca/generator.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index c9b4ac809..e953971b7 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -413,15 +413,17 @@ class Generator:
else:
try:
name = obj.name
+ description = obj.description
except:
- msg = "ERROR: Exception getting name for %s" % obj
+ msg = "ERROR: Exception getting name and description for %s" % obj
debug.println(debug.LEVEL_INFO, msg, True)
name = ""
+ description = ""
result = []
- if obj.description:
+ if description:
label = self._script.utilities.displayedLabel(obj) or ""
- desc = obj.description.lower()
+ desc = description.lower()
if not (desc in name.lower() or desc in label.lower()):
result.append(obj.description)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]