diff options
author | Ruben Rodriguez <ruben@activitycentral.com> | 2013-07-30 18:31:51 (GMT) |
---|---|---|
committer | Ruben Rodriguez <ruben@activitycentral.com> | 2013-07-30 18:31:51 (GMT) |
commit | f5e99c6af4ac3754418cc78bf01327ba5cb22550 (patch) | |
tree | 4f8e756eecca2c2a22ada611e9e2e797eb955703 | |
parent | db1da01efa037e0c5a691468657ba8d8be01175a (diff) |
Keyboard CP saves to gconf through try/except block
-rw-r--r-- | extensions/cpsection/keyboard/model.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/extensions/cpsection/keyboard/model.py b/extensions/cpsection/keyboard/model.py index 16f6a01..320d7d7 100644 --- a/extensions/cpsection/keyboard/model.py +++ b/extensions/cpsection/keyboard/model.py @@ -171,8 +171,11 @@ class KeyboardManager(object): # FIXME, gconf_client_set_list not introspectable #681433 # self._gconf_client.set_list(_OPTIONS_KEY, GConf.ValueType.STRING, # options) - SugarExt.gconf_client_set_string_list(self._gconf_client, + try: + SugarExt.gconf_client_set_string_list(self._gconf_client, _OPTIONS_KEY, options) + except: + logging.error('Could not set the gconf value for the keyboard options key') self._configrec.set_options(options) self._configrec.activate(self._engine) @@ -183,8 +186,11 @@ class KeyboardManager(object): # FIXME, gconf_client_set_list not introspectable #681433 # self._gconf_client.set_list(_LAYOUTS_KEY, GConf.ValueType.STRING, # layouts) - SugarExt.gconf_client_set_string_list(self._gconf_client, + try: + SugarExt.gconf_client_set_string_list(self._gconf_client, _LAYOUTS_KEY, layouts) + except: + logging.error('Could not set the gconf value for the keyboard layouts key') layouts_list = [] variants_list = [] for layout in layouts: |