[orca] Handle errors seen when restarting gnome-shell
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle errors seen when restarting gnome-shell
- Date: Mon, 12 Mar 2012 11:32:49 +0000 (UTC)
commit 713b21bad3fba02385ff4fd707e1c84a2d350b98
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Mar 12 07:29:40 2012 -0400
Handle errors seen when restarting gnome-shell
src/orca/script_manager.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/script_manager.py b/src/orca/script_manager.py
index 30c86d9..ffebbb7 100644
--- a/src/orca/script_manager.py
+++ b/src/orca/script_manager.py
@@ -185,8 +185,14 @@ class ScriptManager:
if script:
return script
- if app and getattr(app, "toolkitName", None):
- script = self._newNamedScript(app, app.toolkitName)
+ try:
+ toolkitName = getattr(app, "toolkitName", None)
+ except (LookupError, RuntimeError):
+ msg = "Error getting toolkitName for: %s" % app
+ debug.println(debug.LEVEL_FINE, msg)
+ else:
+ if app and toolkitName:
+ script = self._newNamedScript(app, toolkitName)
if not script:
script = self.getDefaultScript(app)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]