[orca] Add a sanity check to hopefully work around a Thunderbird timeout
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add a sanity check to hopefully work around a Thunderbird timeout
- Date: Tue, 11 Feb 2014 05:04:07 +0000 (UTC)
commit c733b28e4b8c9479490b582541445326cedfc608
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 11 00:02:32 2014 -0500
Add a sanity check to hopefully work around a Thunderbird timeout
.../scripts/toolkits/Gecko/script_utilities.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script_utilities.py
b/src/orca/scripts/toolkits/Gecko/script_utilities.py
index bb18309..ba4b299 100644
--- a/src/orca/scripts/toolkits/Gecko/script_utilities.py
+++ b/src/orca/scripts/toolkits/Gecko/script_utilities.py
@@ -305,7 +305,10 @@ class Utilities(script_utilities.Utilities):
debug.printStack(debug.LEVEL_WARNING)
return -1
- attrs = obj.getAttributes()
+ try:
+ attrs = obj.getAttributes()
+ except:
+ attrs = None
if attrs is None:
return -1
for attr in attrs:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]