diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-29 15:00:49 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-29 15:00:49 +0100 |
commit | fb20fdafe489a369a3c76142c0028fae7860cc74 (patch) | |
tree | 3df6e0c36e07c22972dcfa1b4081d92c2730abca /src/Gui/ABRTPlugin.py | |
parent | 36e3715dc7d1048b14f492efdb83e2bd0e19990f (diff) | |
download | abrt-fb20fdafe489a369a3c76142c0028fae7860cc74.tar.gz abrt-fb20fdafe489a369a3c76142c0028fae7860cc74.tar.xz abrt-fb20fdafe489a369a3c76142c0028fae7860cc74.zip |
GUI: fixed bug caused by failed gk-authorization
- if user enters a wrong password to gk and doesn't unlock
it, the GUI would throw an exception, this patch makes GUI to
ask twice per every plugin, ignore the exception is it fails
and it will use defaults from /etc/abrt/plugins
Diffstat (limited to 'src/Gui/ABRTPlugin.py')
-rw-r--r-- | src/Gui/ABRTPlugin.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Gui/ABRTPlugin.py b/src/Gui/ABRTPlugin.py index 320c81ca..f32a5935 100644 --- a/src/Gui/ABRTPlugin.py +++ b/src/Gui/ABRTPlugin.py @@ -39,7 +39,15 @@ class PluginSettings(dict): self[str(key)] = str(daemon_settings[key]) if self.client_side_conf: - settings = self.client_side_conf.load(name) + # FIXME: this fails when gk-authoriaztion fails + # we need to show a dialog to user and let him know + # for now just silently ignore it to avoid rhbz#559342 + settings = {} + try: + settings = self.client_side_conf.load(name) + except Exception, e: + print e + pass # overwrite daemon data with user setting for key in settings.keys(): # only rewrite keys which exist in plugin's keys. |