[orca/new-settings] Fix for bad raise call
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Fix for bad raise call
- Date: Mon, 18 Oct 2010 20:08:46 +0000 (UTC)
commit 8542189ecca4bdafacf601f51baef2ab9536cf9f
Author: Juanje Ojeda <jojeda emergya es>
Date: Mon Oct 18 22:05:00 2010 +0200
Fix for bad raise call
src/orca/backends/gconf_backend.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/backends/gconf_backend.py b/src/orca/backends/gconf_backend.py
index dc5a6e5..9701943 100644
--- a/src/orca/backends/gconf_backend.py
+++ b/src/orca/backends/gconf_backend.py
@@ -47,7 +47,8 @@ class GConfKeysDict(dict):
def __setitem__(self, key, val):
if not type(val) in self.VALID_KEY_TYPES:
- raise 'Invalid %s for gconf key' % type(val)
+ print "Invalid type %s for gconf key: %s (val: %s)" % (type(val), key, str(val))
+ raise TypeError
else:
dict.__setitem__(self, key, val)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]