python-keyring isn't a hard dependency
This commit is contained in:
parent
ba6f31dac8
commit
aaa5b215ad
1 changed files with 1 additions and 2 deletions
|
|
@ -106,8 +106,7 @@ class ValueBackendPassword(Value):
|
||||||
try:
|
try:
|
||||||
import keyring
|
import keyring
|
||||||
keyring.set_password(self._domain, self.id, passwd)
|
keyring.set_password(self._domain, self.id, passwd)
|
||||||
except str, e:
|
except Exception, e:
|
||||||
print str(e)
|
|
||||||
self._value = passwd
|
self._value = passwd
|
||||||
else:
|
else:
|
||||||
self._value = ''
|
self._value = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue