python-keyring isn't a hard dependency

This commit is contained in:
Romain Bignon 2011-07-04 14:51:34 +02:00
commit aaa5b215ad

View file

@ -106,8 +106,7 @@ class ValueBackendPassword(Value):
try:
import keyring
keyring.set_password(self._domain, self.id, passwd)
except str, e:
print str(e)
except Exception, e:
self._value = passwd
else:
self._value = ''