[orca] Eliminate a debugging-triggered traceback when an object becomes defunct
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Eliminate a debugging-triggered traceback when an object becomes defunct
- Date: Tue, 18 Feb 2014 18:56:16 +0000 (UTC)
commit 76d33e041b12567384f212da63023b58336ea9ed
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 18 13:55:26 2014 -0500
Eliminate a debugging-triggered traceback when an object becomes defunct
src/orca/orca.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index 01210fd..85d7192 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -171,11 +171,15 @@ def setLocusOfFocus(event, obj, notifyScript=True, force=False):
appname = "'" + app.name + "'"
except:
appname = "None"
+ try:
+ name = orca_state.locusOfFocus.name
+ rolename = orca_state.locusOfFocus.getRoleName()
+ except:
+ name = "Error"
+ rolename = "Error"
debug.println(debug.LEVEL_FINE,
"LOCUS OF FOCUS: app=%s name='%s' role='%s'" \
- % (appname,
- orca_state.locusOfFocus.name,
- orca_state.locusOfFocus.getRoleName()))
+ % (appname, name, rolename))
if event:
debug.println(debug.LEVEL_FINE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]