summaryrefslogtreecommitdiffstats
path: root/src/Gui/ABRTPlugin.py
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-01-29 15:00:49 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2010-01-29 15:00:49 +0100
commitfb20fdafe489a369a3c76142c0028fae7860cc74 (patch)
tree3df6e0c36e07c22972dcfa1b4081d92c2730abca /src/Gui/ABRTPlugin.py
parent36e3715dc7d1048b14f492efdb83e2bd0e19990f (diff)
downloadabrt-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.py10
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.