summaryrefslogtreecommitdiffstats
path: root/src/Gui/ConfBackend.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gui/ConfBackend.py')
-rw-r--r--src/Gui/ConfBackend.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Gui/ConfBackend.py b/src/Gui/ConfBackend.py
index 741f2009..a76873b5 100644
--- a/src/Gui/ConfBackend.py
+++ b/src/Gui/ConfBackend.py
@@ -114,7 +114,7 @@ class ConfBackendGnomeKeyring(ConfBackend):
settings_tmp, # attrs
password, # secret
True)
- except gkey.DeniedError, e:
+ except gkey.DeniedError:
raise ConfBackendSaveError(_("Access to gnome-keyring has been denied, plugins settings won't be saved."))
def load(self, name):
@@ -144,12 +144,11 @@ class ConfBackendGnomeKeyring(ConfBackend):
except gkey.NoMatchError:
# nothing found
pass
- except gkey.DeniedError, e:
+ except gkey.DeniedError:
attempts -= 1
log2("gk-authorization has failed %i time(s)", 2-attempts)
if attempts == 0:
# we tried 2 times, so giving up the authorization
- print "raising exception"
raise ConfBackendLoadError(_("Access to gnome-keyring has been denied, can't load the settings for %s!" % name))
continue
break
@@ -229,7 +228,7 @@ class ConfBackendGnomeKeyring(ConfBackend):
del attrs["Application"]
except:
pass
- retval[plugin_name] = attrs;
+ retval[plugin_name] = attrs
return retval