[Gustavo] make gnomekeyring code more robust.
This commit is contained in:
parent
e2430062f1
commit
edf0ea9f4d
|
@ -85,7 +85,7 @@ storage = None
|
||||||
def get_storage():
|
def get_storage():
|
||||||
global storage
|
global storage
|
||||||
if storage is None: # None is only in first time get_storage is called
|
if storage is None: # None is only in first time get_storage is called
|
||||||
if USER_HAS_GNOMEKEYRING:
|
if USER_HAS_GNOMEKEYRING and gnomekeyring.is_available():
|
||||||
try:
|
try:
|
||||||
storage = GnomePasswordStorage()
|
storage = GnomePasswordStorage()
|
||||||
except gnomekeyring.NoKeyringDaemonError:
|
except gnomekeyring.NoKeyringDaemonError:
|
||||||
|
|
Loading…
Reference in New Issue