summaryrefslogtreecommitdiffstats
path: root/src/Gui/ConfBackend.py
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-01-30 21:33:42 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2010-01-30 21:33:42 +0100
commit226ad13b9324fdd5165a1158e310cebd0440aaf7 (patch)
treefc13e1613225e4e9037418a249e1c800d83de241 /src/Gui/ConfBackend.py
parentd49543d341681d0ab24ba58f7316fe155472573e (diff)
downloadabrt-226ad13b9324fdd5165a1158e310cebd0440aaf7.tar.gz
abrt-226ad13b9324fdd5165a1158e310cebd0440aaf7.tar.xz
abrt-226ad13b9324fdd5165a1158e310cebd0440aaf7.zip
GUI: fixed some pylint warnings
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