Commit 2421aa9d authored by Romain Bignon's avatar Romain Bignon

disable keyrings without warnings in pyflakes (refs #706)

parent 8bf985ad
......@@ -104,8 +104,8 @@ class ValueBackendPassword(Value):
return
try:
# See #706
import keyring_DISABLED
raise ImportError('Keyrings are disabled (see #706)')
import keyring
keyring.set_password(self._domain, self.id, passwd)
except Exception:
self._value = passwd
......@@ -123,8 +123,8 @@ class ValueBackendPassword(Value):
return self._value
try:
# See #706
import keyring_DISABLED
raise ImportError('Keyrings are disabled (see #706)')
import keyring
except ImportError:
passwd = None
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment