diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-30 21:33:42 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-30 21:33:42 +0100 |
commit | 226ad13b9324fdd5165a1158e310cebd0440aaf7 (patch) | |
tree | fc13e1613225e4e9037418a249e1c800d83de241 /src/Gui/ConfBackend.py | |
parent | d49543d341681d0ab24ba58f7316fe155472573e (diff) | |
download | abrt-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.py | 7 |
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 |