[orca] Handle exception getting name from defunct active window
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle exception getting name from defunct active window
- Date: Thu, 19 Nov 2015 14:11:05 +0000 (UTC)
commit a56a0b9f8f8cd774a434b4d8227a3c5fcd618e35
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Nov 19 09:08:55 2015 -0500
Handle exception getting name from defunct active window
src/orca/scripts/default.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 815c135..168e2f5 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -747,7 +747,12 @@ class Script(script.Script):
names = self.pointOfReference.get('names', {})
names[hash(obj)] = name
if orca_state.activeWindow:
- names[hash(orca_state.activeWindow)] = orca_state.activeWindow.name
+ try:
+ names[hash(orca_state.activeWindow)] = orca_state.activeWindow.name
+ except:
+ msg = "DEFAULT: Exception getting name for %s" % orca_state.activeWindow
+ debug.println(debug.LEVEL_INFO, msg)
+
self.pointOfReference['names'] = names
# We want to save the offset for text objects because some apps and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]