From 86877faf6b1be201de5ff64f1bdded594b901b85 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 1 Apr 2010 16:14:55 +0200 Subject: gui: fix the last case where gnome-keyring's find_items_sync() may throw DeniedError Signed-off-by: Denys Vlasenko --- src/Gui/ConfBackend.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Gui/ConfBackend.py b/src/Gui/ConfBackend.py index a76873b5..bb62da43 100644 --- a/src/Gui/ConfBackend.py +++ b/src/Gui/ConfBackend.py @@ -201,6 +201,9 @@ class ConfBackendGnomeKeyring(ConfBackend): except gkey.NoMatchError: # nothing found pass + except gkey.DeniedError: + raise ConfBackendLoadError(_("Access to gnome-keyring has been denied, can't load settings")) + for item in item_list: # gnome keyring is weeeeird. why display_name, type, mtime, ctime # aren't available in find_items_sync() results? why we need to -- cgit